diff options
author | Christopher Faylor <me@cgf.cx> | 2008-09-12 22:43:10 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-09-12 22:43:10 +0000 |
commit | a35d9f1a676f430e1dbbb555f327cd7a40df37f7 (patch) | |
tree | bb400cd789df6f8d154be4fca3e1aab9e59e3549 /winsup/utils/strace.cc | |
parent | 175742d8c818ff31b06174494a77b30e5008eb83 (diff) | |
download | newlib-a35d9f1a676f430e1dbbb555f327cd7a40df37f7.zip newlib-a35d9f1a676f430e1dbbb555f327cd7a40df37f7.tar.gz newlib-a35d9f1a676f430e1dbbb555f327cd7a40df37f7.tar.bz2 |
* cygcheck.cc (pathlike::check_existence): Remove class name from declaration.
(display_internet_error): Use proper format specifier for DWORD.
(environ): Remove unneeded declaration.
(main): Use brace around nested if to avoid an overly-helpful compiler warning.
* dump_setup.cc (parse_filename): Reorganize nested if to avoid an
overly-helpful compiler warning.
* path.cc (GUID_shortcut): Use braces around part of initializer which needs
them.
(conv_fstab_spaces): Parenthesize assignment in while loop to avoid a compiler
warning.
(struct opt): Make static.
* ps.cc (main): Reorganize nested if to avoid an overly-helpful compiler
warning.
* regtool.cc: Make some anonymous structs static to avoid a compiler warning.
* ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential
uninitialized use.
* strace.cc (add_child): Use proper format specifier for DWORD.
(remove_child): Ditto.
(proc_child): Ditto.
Diffstat (limited to 'winsup/utils/strace.cc')
-rw-r--r-- | winsup/utils/strace.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 3833264..19d15bd 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -131,7 +131,7 @@ add_child (DWORD id, HANDLE hproc) lasth = children.next->hproc = hproc; processes++; if (!quiet) - fprintf (stderr, "Windows process %d attached\n", id); + fprintf (stderr, "Windows process %lu attached\n", id); } } @@ -148,7 +148,7 @@ remove_child (DWORD id) c->next = c1->next; free (c1); if (!quiet) - fprintf (stderr, "Windows process %d detached\n", id); + fprintf (stderr, "Windows process %lu detached\n", id); processes--; return; } @@ -650,7 +650,7 @@ proc_child (unsigned mask, FILE *ofile, pid_t pid) { status = DBG_EXCEPTION_NOT_HANDLED; if (ev.u.Exception.dwFirstChance) - fprintf (ofile, "--- Process %u, exception %p at %p\n", ev.dwProcessId, + fprintf (ofile, "--- Process %lu, exception %p at %p\n", ev.dwProcessId, ev.u.Exception.ExceptionRecord.ExceptionCode, ev.u.Exception.ExceptionRecord.ExceptionAddress); } |