mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 16:56: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)
|
void process_realloc_done(struct process *process, struct mt_msg *mt_msg, void *payload)
|
||||||
{
|
{
|
||||||
unsigned long ptr;
|
unsigned long ptr;
|
||||||
unsigned int pid;
|
unsigned long pid;
|
||||||
struct list_head *it;
|
struct list_head *it;
|
||||||
|
|
||||||
(void)mt_msg;
|
(void)mt_msg;
|
||||||
@ -1536,7 +1536,7 @@ void process_realloc_done(struct process *process, struct mt_msg *mt_msg, void *
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(options.kill)) {
|
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();
|
abort();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user