From c3b82301a28f96806b01637dfa5be0ca18387791 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 8 Apr 2014 10:47:38 -0600 Subject: [PATCH] apps/sysinfo: CONFIG_VERSION_BUILD is a string and needs to be printed with %s not %d --- ChangeLog.txt | 3 ++- system/sysinfo/sysinfo.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 3c8a54fa6..fb809afef 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -871,4 +871,5 @@ * apps/examplex/lcdrw: Fill out empty Kconfig file (2014-2-27). * apps/netutils/dhcpd/dhcpd.c: The correct value of the PAD option is zero, not one. From Brennan Ashton (2014-3-31). - + * apps/sysinfo: CONFIG_VERSION_BUILD is a string an needs to be + printed with %s, not %d (2014-4-8). diff --git a/system/sysinfo/sysinfo.c b/system/sysinfo/sysinfo.c index 019e910db..858567586 100644 --- a/system/sysinfo/sysinfo.c +++ b/system/sysinfo/sysinfo.c @@ -59,7 +59,7 @@ int sysinfo_main(int argc, char *argv[]) { printf("System Information:\n"); printf("\tNuttX Version:\t" CONFIG_VERSION_STRING - " Build: %d\n", CONFIG_VERSION_BUILD); + " Build: %s\n", CONFIG_VERSION_BUILD); printf("\tSystem Time:\t%d [s] UTC " #ifdef CONFIG_RTC "Hardware RTC Support"