mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 08:46:41 +08:00
Consistently use long for the pid.
This commit is contained in:
parent
3afc8f0a3f
commit
003dd834fd
@ -1500,7 +1500,7 @@ void process_free(struct process *process, struct mt_msg *mt_msg, void *payload)
|
||||
void process_realloc_done(struct process *process, struct mt_msg *mt_msg, void *payload)
|
||||
{
|
||||
unsigned long ptr;
|
||||
unsigned int pid;
|
||||
unsigned long pid;
|
||||
struct list_head *it;
|
||||
|
||||
(void)mt_msg;
|
||||
@ -1536,7 +1536,7 @@ void process_realloc_done(struct process *process, struct mt_msg *mt_msg, void *
|
||||
}
|
||||
|
||||
if (unlikely(options.kill)) {
|
||||
fprintf(stderr, ">>> unexpected realloc done pid: %u ptr: %#lx\n", pid, ptr);
|
||||
fprintf(stderr, ">>> unexpected realloc done pid: %lu ptr: %#lx\n", pid, ptr);
|
||||
abort();
|
||||
}
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user