* strace.cc (strace::vsprntf): Avoid printing a zero pid.
This commit is contained in:
parent
91049bd9cd
commit
e0be0a1d50
|
@ -1,3 +1,7 @@
|
|||
2005-09-27 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* strace.cc (strace::vsprntf): Avoid printing a zero pid.
|
||||
|
||||
2005-09-27 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* init.cc (dll_entry): Call IsWow64Process with GetCurrentProcess
|
||||
|
|
|
@ -149,7 +149,7 @@ strace::vsprntf (char *buf, const char *func, const char *infmt, va_list ap)
|
|||
*p = '\000';
|
||||
p = progname;
|
||||
count = __small_sprintf (buf, fmt, p && *p ? p : "?",
|
||||
myself ? myself->pid : GetCurrentProcessId (),
|
||||
(myself && myself->pid) ? myself->pid : GetCurrentProcessId (),
|
||||
execing ? "!" : "");
|
||||
if (func)
|
||||
count += getfunc (buf + count, func);
|
||||
|
|
Loading…
Reference in New Issue