trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

fprintf(stderr, "tdeinit: PID %ld terminated.\n", (long) exit_pid);

From: Darrell Anderson <humanreadable@...>
Date: Thu, 1 Mar 2012 20:12:46 -0800 (PST)
This message is from tdelibs/kinit/kinit.cpp. They appear in the xession log.

I don't mind the messages and I can see from the source code they are intended to be debugging aids.

But they lack information. How do I add the process name to the message?

Like this:

PID 10804 (process name) terminated.

With that information the message might remain useful only for debugging, but at least the message appears more useful and informational to users.

Darrell