Fix pid_t printing
* fileline.c (fileline_initialize): Print pid_t as long. From-SVN: r250675
This commit is contained in:
parent
8acb8421b9
commit
cf311b0355
|
@ -1,3 +1,7 @@
|
|||
2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* fileline.c (fileline_initialize): Print pid_t as long.
|
||||
|
||||
2017-07-26 Tony Reix <tony.reix@atos.net>
|
||||
|
||||
* configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
|
||||
|
|
|
@ -102,7 +102,8 @@ fileline_initialize (struct backtrace_state *state,
|
|||
filename = "/proc/curproc/file";
|
||||
break;
|
||||
case 4:
|
||||
snprintf (buf, sizeof (buf), "/proc/%d/object/a.out", getpid ());
|
||||
snprintf (buf, sizeof (buf), "/proc/%ld/object/a.out",
|
||||
(long) getpid ());
|
||||
filename = buf;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue