xiaoxiang781216 commented on code in PR #18840:
URL: https://github.com/apache/nuttx/pull/18840#discussion_r3177846737


##########
fs/procfs/fs_procfsuptime.c:
##########
@@ -250,13 +246,8 @@ static ssize_t uptime_read(FAR struct file *filep, FAR 
char *buffer,
 
       /* Convert the seconds + hundredths of seconds to a string */
 
-#ifdef CONFIG_SYSTEM_TIME64
       linesize = procfs_snprintf(attr->line, UPTIME_LINELEN,
                                  "%7" PRIu64 ".%02u\n", sec, csec);

Review Comment:
   fix



##########
drivers/power/pm/pm_procfs.c:
##########
@@ -50,19 +50,11 @@
 #define PFHDR "CALLBACKS                 IDLE           STANDBY        SLEEP\n"
 #define WAHDR "DOMAIN%-2d                  STATE          COUNT          
TIME\n"
 
-#ifdef CONFIG_SYSTEM_TIME64
-#  define STFMT "%-18s %8" PRIu64 "s %3" PRIu64 "%% %8" PRIu64 "s %3" \
-                PRIu64 "%% %8" PRIu64 "s %3" PRIu64 "%%\n"
-#  define PFFMT "%-18p %8" PRIu64 "s %3" PRIu64 "%% %8" PRIu64 "s %3" \
-                PRIu64 "%% %8" PRIu64 "s %3" PRIu64 "%%\n"
-#  define WAFMT "%-25s %-14s %-14" PRIu32 " %" PRIu64 "s\n"
-#else
-#  define STFMT "%-18s %8" PRIu32 "s %3" PRIu32 "%% %8" PRIu32 "s %3" \
-                PRIu32 "%% %8" PRIu32 "s %3" PRIu32 "%%\n"
-#  define PFFMT "%-18p %8" PRIu32 "s %3" PRIu32 "%% %8" PRIu32 "s %3" \
-                PRIu32 "%% %8" PRIu32 "s %3" PRIu32 "%%\n"
-#  define WAFMT "%-25s %-14s %-14" PRIu32 " %" PRIu32 "s\n"
-#endif
+#define STFMT "%-18s %8" PRIu64 "s %3" PRIu64 "%% %8" PRIu64 "s %3" \
+               PRIu64 "%% %8" PRIu64 "s %3" PRIu64 "%%\n"
+#define PFFMT "%-18p %8" PRIu64 "s %3" PRIu64 "%% %8" PRIu64 "s %3" \
+               PRIu64 "%% %8" PRIu64 "s %3" PRIu64 "%%\n"
+#define WAFMT "%-25s %-14s %-14" PRIu32 " %" PRIu64 "s\n"

Review Comment:
   fix



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to