Commit cf311b03 by Rainer Orth Committed by Rainer Orth

Fix pid_t printing

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

From-SVN: r250675
parent 8acb8421
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> 2017-07-26 Tony Reix <tony.reix@atos.net>
* configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery. * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
......
...@@ -102,7 +102,8 @@ fileline_initialize (struct backtrace_state *state, ...@@ -102,7 +102,8 @@ fileline_initialize (struct backtrace_state *state,
filename = "/proc/curproc/file"; filename = "/proc/curproc/file";
break; break;
case 4: 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; filename = buf;
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment