]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: (cosmetic) normalize whitespaces
authorMasatake YAMATO <yamato@redhat.com>
Wed, 3 Jan 2024 19:57:25 +0000 (04:57 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sat, 24 Feb 2024 17:02:43 +0000 (02:02 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.c

index 0e59781ab23c8306d5fa0ec1fa40df9f4ae53cdb..60535200cf34f2f02da8e729f23edae76aaebdcd 100644 (file)
@@ -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)