summaryrefslogtreecommitdiff
path: root/src/porting.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-10-14 01:26:03 -0400
committerkwolekr <kwolekr@minetest.net>2015-10-14 01:36:48 -0400
commit96cc5b34fe0151d2a1498eaaafb205757db346c4 (patch)
treee612a2d78086427cc5f555b82c597dcf9dd13b74 /src/porting.cpp
parent2139d7d45fb1a8ed250ad96c9975c581f02f72a9 (diff)
downloadminetest-96cc5b34fe0151d2a1498eaaafb205757db346c4.tar.gz
minetest-96cc5b34fe0151d2a1498eaaafb205757db346c4.tar.bz2
minetest-96cc5b34fe0151d2a1498eaaafb205757db346c4.zip
Use warningstream for log messages with WARNING
Remove DTIME macro and its uses, too
Diffstat (limited to 'src/porting.cpp')
-rw-r--r--src/porting.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/porting.cpp b/src/porting.cpp
index d0dfc801f..ced41d4fb 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -75,13 +75,13 @@ bool * signal_handler_killstatus(void)
void sigint_handler(int sig)
{
- if(!g_killed) {
- dstream<<DTIME<<"INFO: sigint_handler(): "
- <<"Ctrl-C pressed, shutting down."<<std::endl;
+ if (!g_killed) {
+ dstream << "INFO: sigint_handler(): "
+ << "Ctrl-C pressed, shutting down." << std::endl;
// Comment out for less clutter when testing scripts
- /*dstream<<DTIME<<"INFO: sigint_handler(): "
- <<"Printing debug stacks"<<std::endl;
+ /*dstream << "INFO: sigint_handler(): "
+ << "Printing debug stacks" << std::endl;
debug_stacks_print();*/
g_killed = true;
@@ -105,8 +105,8 @@ BOOL WINAPI event_handler(DWORD sig)
case CTRL_CLOSE_EVENT:
case CTRL_LOGOFF_EVENT:
case CTRL_SHUTDOWN_EVENT:
- if (g_killed == false) {
- dstream << DTIME << "INFO: event_handler(): "
+ if (!g_killed) {
+ dstream << "INFO: event_handler(): "
<< "Ctrl+C, Close Event, Logoff Event or Shutdown Event,"
" shutting down." << std::endl;
g_killed = true;
@@ -401,14 +401,14 @@ bool setSystemPaths()
const std::string &trypath = *i;
if (!fs::PathExists(trypath) ||
!fs::PathExists(trypath + DIR_DELIM + "builtin")) {
- dstream << "WARNING: system-wide share not found at \""
+ warningstream << "system-wide share not found at \""
<< trypath << "\""<< std::endl;
continue;
}
// Warn if was not the first alternative
if (i != trylist.begin()) {
- dstream << "WARNING: system-wide share found at \""
+ warningstream << "system-wide share found at \""
<< trypath << "\"" << std::endl;
}
@@ -437,7 +437,7 @@ bool setSystemPaths()
TRUE, (UInt8 *)path, PATH_MAX)) {
path_share = std::string(path);
} else {
- dstream << "WARNING: Could not determine bundle resource path" << std::endl;
+ warningstream << "Could not determine bundle resource path" << std::endl;
}
CFRelease(resources_url);