From c057503aaf53c25e67d5bf36c33cd15ec9188c5d Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Tue, 17 Dec 2013 13:59:06 -0800 Subject: [PATCH] toolbox: date: fix parameter type warnings Change-Id: I810a9abee8bc0061c5007fe08197384f2b85754b Signed-off-by: Greg Hackmann --- toolbox/date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/date.c b/toolbox/date.c index 35ef84625..fc8e4f8d6 100644 --- a/toolbox/date.c +++ b/toolbox/date.c @@ -114,7 +114,7 @@ int date_main(int argc, char *argv[]) //tv.tv_sec = mktime(&tm); //tv.tv_usec = 0; strtotimeval(argv[optind], &tv); - printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec); + printf("time %s -> %lu.%lu\n", argv[optind], tv.tv_sec, tv.tv_usec); fd = open("/dev/alarm", O_RDWR); ts.tv_sec = tv.tv_sec; ts.tv_nsec = tv.tv_usec * 1000;