From 0bff3593d3ecc766f7c8981a3259d10a9110833d Mon Sep 17 00:00:00 2001 From: Carlo Wood Date: Sat, 29 Oct 2016 02:22:04 +0200 Subject: [PATCH] Do not use std::cout for qurt's sake. Using cout drags in std::localeconv which isn't defined on QURT. While this file is also used for POSIX, it doesn't seem to harm much to use printf there as well. --- src/platforms/apps.cpp.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platforms/apps.cpp.in b/src/platforms/apps.cpp.in index 94502c0ad8..495c7992ac 100644 --- a/src/platforms/apps.cpp.in +++ b/src/platforms/apps.cpp.in @@ -4,7 +4,7 @@ #include "apps.h" -#include +#include #include #include @@ -44,7 +44,7 @@ void list_builtins(apps_map_type &apps) int shutdown_main(int argc, char *argv[]) { - std::cout << "Shutting down" << std::endl; + printf("Shutting down\n"); exit(0); } @@ -80,7 +80,7 @@ int sleep_main(int argc, char *argv[]) } unsigned long usecs = 1000000UL * atol(argv[1]); - std::cout << "Sleeping for " << argv[1] << " s; (" << usecs << " us)." << std::endl; + printf("Sleeping for %s s; (%lu us).\n", argv[1], usecs); usleep(usecs); return 0; }