summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-14 13:55:48 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-18 11:24:44 -0500
commit54bdf0c7e5d689da76d41ccbbf2c9dc830fd8c4e (patch)
tree9df296747c4d42e9580c04ad5f7d4e1ca469b532 /cpukit/libmisc
parenttestsuite: Fix rtems-test-check not excluding tests. (diff)
downloadrtems-54bdf0c7e5d689da76d41ccbbf2c9dc830fd8c4e.tar.bz2
rtems/inttypes.h: New file. Uses contents from cpukit
Provide extentions to <inttpes.h> PRIxxx constants for more POSIX types. Start with existing definitions found in RTEMS Project owned code in cpukit/. updates #2983.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r--cpukit/libmisc/shell/main_time.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/cpukit/libmisc/shell/main_time.c b/cpukit/libmisc/shell/main_time.c
index 5ea1bf7498..61fc22aa33 100644
--- a/cpukit/libmisc/shell/main_time.c
+++ b/cpukit/libmisc/shell/main_time.c
@@ -22,17 +22,9 @@
#include <rtems.h>
#include <rtems/shell.h>
+#include <rtems/inttypes.h>
#include "internal.h"
-/* Helper macro to print "time_t" */
-#if SIZEOF_TIME_T == 8
-#define PRIdtime_t PRId64
-#elif SIZEOF_TIME_T == 4
-#define PRIdtime_t PRId32
-#else
-#error "PRIdtime_t: unsupported size of time_t"
-#endif
-
static int rtems_shell_main_time(
int argc,
char *argv[]