Fix pid_t printing

* fileline.c (fileline_initialize): Print pid_t as long.

From-SVN: r250675
This commit is contained in:
Rainer Orth 2017-07-28 16:26:39 +00:00 committed by Rainer Orth
parent 8acb8421b9
commit cf311b0355
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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: