From: Masatake YAMATO Date: Wed, 3 Jan 2024 19:57:25 +0000 (+0900) Subject: lsfd: (cosmetic) normalize whitespaces X-Git-Tag: v2.42-start~502^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d967f8e6e3c7eb93cd4c7302718e234488f90683;p=thirdparty%2Futil-linux.git lsfd: (cosmetic) normalize whitespaces Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd.c b/misc-utils/lsfd.c index 0e59781ab..60535200c 100644 --- a/misc-utils/lsfd.c +++ b/misc-utils/lsfd.c @@ -929,7 +929,7 @@ static void parse_maps_line(struct path_cxt *pc, char *buf, struct proc *proc) "-%"SCNx64 /* end */ " %4[^ ]" /* mode */ " %"SCNx64 /* offset */ - " %lx:%lx" /* maj:min */ + " %lx:%lx" /* maj:min */ " %"SCNu64, /* inode */ &start, &end, modestr, &offset, @@ -1658,17 +1658,17 @@ static void parse_proc_syscall(struct lsfd_control *ctl __attribute__((__unused_ return; switch (scn) { -#ifdef SYS_poll +#ifdef SYS_poll case SYS_poll: mark_poll_fds_as_multiplexed(ptr, pid, proc); break; #endif -#ifdef SYS_ppoll +#ifdef SYS_ppoll case SYS_ppoll: mark_poll_fds_as_multiplexed(ptr, pid, proc); break; #endif -#ifdef SYS_ppoll_time64 +#ifdef SYS_ppoll_time64 case SYS_ppoll_time64: mark_poll_fds_as_multiplexed(ptr, pid, proc); break; @@ -1684,7 +1684,7 @@ static void parse_proc_syscall(struct lsfd_control *ctl __attribute__((__unused_ mark_select_fds_as_multiplexed(ptr, pid, proc); break; #endif -#ifdef SYS_pselect6_time64 +#ifdef SYS_pselect6_time64 case SYS_pselect6_time64: mark_select_fds_as_multiplexed(ptr, pid, proc); break; @@ -1778,7 +1778,7 @@ static void read_process(struct lsfd_control *ctl, struct path_cxt *pc, out: /* Let's be careful with number of open files */ - ul_path_close_dirfd(pc); + ul_path_close_dirfd(pc); } static void parse_pids(const char *str, pid_t **pids, int *count)