Browse Source

64位模式下 默认支持 RT_PRINTF_LONGLONG

liuduanfei 4 years ago
parent
commit
f33c89ce5a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/kservice.c

+ 4 - 0
src/kservice.c

@@ -30,6 +30,10 @@
 /* use precision */
 #define RT_PRINTF_PRECISION
 
+#ifdef ARCH_CPU_64BIT
+    #define RT_PRINTF_LONGLONG
+#endif
+
 /**
  * @addtogroup KernelService
  */