Skip to content
Snippets Groups Projects
Commit 0bff3593 authored by Carlo Wood's avatar Carlo Wood Committed by Lorenz Meier
Browse files

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.
parent 52b8e75a
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
#include "apps.h"
#include <iostream>
#include <cstdio>
#include <map>
#include <string>
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment