aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CIrrDeviceLinux.cpp
diff options
context:
space:
mode:
authorcutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475>2022-06-30 16:23:48 +0000
committersfan5 <sfan5@live.de>2023-03-24 17:09:11 +0100
commit98df6eae77d646eb8958ce39988d2c0c8da0b1ba (patch)
treee345393ac855fe3fe466cc3178d93869785694cb /source/Irrlicht/CIrrDeviceLinux.cpp
parent3ce4b2b5dceb2c0c0d265d04a9aac72aba544c3a (diff)
downloadirrlicht-98df6eae77d646eb8958ce39988d2c0c8da0b1ba.tar.xz
Unify & improve log messages
Lots of places where coders did not realize our Printer::log with hint adds a ": " string between message and hint Which caused uglier messages in a few places (added documentation for that, maybe helps?) Some added info in a few places Some whitespace unification Some spelling unification git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6414 dfc29bdd-3216-0410-991c-e03cc46cb475
Diffstat (limited to 'source/Irrlicht/CIrrDeviceLinux.cpp')
-rw-r--r--source/Irrlicht/CIrrDeviceLinux.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/Irrlicht/CIrrDeviceLinux.cpp b/source/Irrlicht/CIrrDeviceLinux.cpp
index b447015..3c19099 100644
--- a/source/Irrlicht/CIrrDeviceLinux.cpp
+++ b/source/Irrlicht/CIrrDeviceLinux.cpp
@@ -287,26 +287,26 @@ void IrrPrintXGrabError(int grabResult, const c8 * grabCommand )
{
if ( grabResult == GrabSuccess )
{
-// os::Printer::log(grabCommand, ": GrabSuccess", ELL_INFORMATION);
+// os::Printer::log(grabCommand, "GrabSuccess", ELL_INFORMATION);
return;
}
switch ( grabResult )
{
case AlreadyGrabbed:
- os::Printer::log(grabCommand, ": AlreadyGrabbed", ELL_WARNING);
+ os::Printer::log(grabCommand, "AlreadyGrabbed", ELL_WARNING);
break;
case GrabNotViewable:
- os::Printer::log(grabCommand, ": GrabNotViewable", ELL_WARNING);
+ os::Printer::log(grabCommand, "GrabNotViewable", ELL_WARNING);
break;
case GrabFrozen:
- os::Printer::log(grabCommand, ": GrabFrozen", ELL_WARNING);
+ os::Printer::log(grabCommand, "GrabFrozen", ELL_WARNING);
break;
case GrabInvalidTime:
- os::Printer::log(grabCommand, ": GrabInvalidTime", ELL_WARNING);
+ os::Printer::log(grabCommand, "GrabInvalidTime", ELL_WARNING);
break;
default:
- os::Printer::log(grabCommand, ": grab failed with unknown problem", ELL_WARNING);
+ os::Printer::log(grabCommand, "grab failed with unknown problem", ELL_WARNING);
break;
}
}
@@ -380,7 +380,7 @@ bool CIrrDeviceLinux::createWindow()
}
#ifdef _DEBUG
else
- os::Printer::log("Visual chosen: ", core::stringc(static_cast<u32>(VisualInfo->visualid)).c_str(), ELL_DEBUG);
+ os::Printer::log("Visual chosen", core::stringc(static_cast<u32>(VisualInfo->visualid)).c_str(), ELL_DEBUG);
#endif
// create color map
@@ -1796,7 +1796,7 @@ Bool PredicateIsEventType(Display *display, XEvent *event, XPointer arg)
{
if ( event && event->type == *(int*)arg )
{
-// os::Printer::log("remove event:", core::stringc((int)arg).c_str(), ELL_INFORMATION);
+// os::Printer::log("remove event", core::stringc((int)arg).c_str(), ELL_INFORMATION);
return True;
}
return False;