]> 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)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Feb 2024 18:52:10 +0000 (19:52 +0100)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit d967f8e6e3c7eb93cd4c7302718e234488f90683)

misc-utils/lsfd.c

index 29e69e1008509c0a31b4b070c18d4ec8393679ba..8d3481efb46095bdb016047a52d4a60c1e4289ba 100644 (file)
@@ -892,7 +892,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,
@@ -1621,17 +1621,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;
@@ -1647,7 +1647,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;
@@ -1741,7 +1741,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)