summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-03-07 17:51:14 -0600
committerSlávek Banko <slavek.banko@axis.cz>2013-03-04 18:36:57 +0100
commit171e63117854ff3312035c472f36dbc71feccfb9 (patch)
treefab59b6fed8dc41dd1fb51eeaebf3aa33280197c
parent123ad08da3ca560e02626b11fc896739a4836321 (diff)
downloadtdebase-171e63117854ff3312035c472f36dbc71feccfb9.tar.gz
tdebase-171e63117854ff3312035c472f36dbc71feccfb9.zip
Add source code module name to stdout/stderr messages to improve readability.
(cherry picked from commit 8c5bbc4bd96509df7085f608d47c7d0855b8926e)
-rw-r--r--kwin/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kwin/main.cpp b/kwin/main.cpp
index efd788ad6..dcc4a7438 100644
--- a/kwin/main.cpp
+++ b/kwin/main.cpp
@@ -60,7 +60,7 @@ int x11ErrorHandler(Display *d, XErrorEvent *e)
)
&& (e->error_code == BadAccess))
{
- fputs(i18n("kwin: it looks like there's already a window manager running. kwin not started.\n").local8Bit(), stderr);
+ fputs(i18n("[kwin] it looks like there's already a window manager running. kwin not started.\n").local8Bit(), stderr);
exit(1);
}
@@ -71,11 +71,11 @@ int x11ErrorHandler(Display *d, XErrorEvent *e)
sprintf(number, "%d", e->request_code);
XGetErrorDatabaseText(d, "XRequest", number, "<unknown>", req, sizeof(req));
- fprintf(stderr, "kwin: %s(0x%lx): %s\n", req, e->resourceid, msg);
+ fprintf(stderr, "[kwin] %s(0x%lx): %s\n", req, e->resourceid, msg);
if (initting)
{
- fputs(i18n("kwin: failure during initialization; aborting").local8Bit(), stderr);
+ fputs(i18n("[kwin] failure during initialization; aborting").local8Bit(), stderr);
exit(1);
}
return 0;
@@ -129,19 +129,19 @@ Application::Application( )
XFree ( (void *) data);
if( !owner.claim( true, true ))
{
- fputs(i18n("kwin: unable to claim manager selection, another wm running? (try using --replace)\n").local8Bit(), stderr);
+ fputs(i18n("[kwin] unable to claim manager selection, another wm running? (try using --replace)\n").local8Bit(), stderr);
::exit(1);
}
}
else
{
- fputs(i18n("kwin: unable to claim manager selection, another wm running? (try using --replace)\n").local8Bit(), stderr);
+ fputs(i18n("[kwin] unable to claim manager selection, another wm running? (try using --replace)\n").local8Bit(), stderr);
::exit(1);
}
}
else
{
- fputs(i18n("kwin: unable to claim manager selection, another wm running? (try using --replace)\n").local8Bit(), stderr);
+ fputs(i18n("[kwin] unable to claim manager selection, another wm running? (try using --replace)\n").local8Bit(), stderr);
::exit(1);
}
}
@@ -299,9 +299,9 @@ KDE_EXPORT int kdemain( int argc, char * argv[] )
if (putenv( strdup(envir.data())) )
{
fprintf(stderr,
- "%s: WARNING: unable to set DISPLAY environment variable\n",
+ "[kwin] %s: WARNING: unable to set DISPLAY environment variable\n",
argv[0]);
- perror("putenv()");
+ perror("[kwin] putenv()");
}
}
}