BugID:19092717: Enhance Keil MDK compile compatibility
#include "cli_api.h"
#include "cli_adapt.h"
+#define TOSTR(s) #s
#define OTA_THREAD_PRIORITY 32
extern void hal_reboot(void);
@@ -144,7 +145,7 @@ static void exit_cmd(char *buf, int32_t len, int32_t argc, char **argv)
static void devname_cmd(char *buf, int32_t len, int32_t argc, char **argv)
{
- cli_printf("device name: %s\r\n", SYSINFO_DEVICE_NAME);
+ cli_printf("device name: %s\r\n", TOSTR(SYSINFO_DEVICE_NAME));
}
static void pmem_cmd(char *buf, int32_t len, int32_t argc, char **argv)
