]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: cosmetic change
authorMasatake YAMATO <yamato@redhat.com>
Fri, 9 Sep 2022 17:11:52 +0000 (02:11 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 12 Sep 2022 12:49:10 +0000 (21:49 +0900)
Sort the elements in "struct colinfo infos" array literal.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.c

index 9981b6a363d81ca4c1e16a8586cccbe8553f0747..ce39bf0695c6cca57edcb0156907a2938d8c256c 100644 (file)
@@ -167,10 +167,10 @@ static struct colinfo infos[] = {
                N_("link count") },
        [COL_OWNER]   = { "OWNER",    0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING,
                N_("owner of the file") },
-       [COL_PID]     = { "PID",      5, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER,
-               N_("PID of the process opening the file") },
        [COL_PARTITION]={ "PARTITION",0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING,
                N_("block device name resolved by /proc/partition") },
+       [COL_PID]     = { "PID",      5, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER,
+               N_("PID of the process opening the file") },
        [COL_PIDFD_COMM]={"PIDFD.COMM",0.2,SCOLS_FL_TRUNC,SCOLS_JSON_STRING,
                N_("command of the process targeted by the pidfd") },
        [COL_PIDFD_NSPID]={"PIDFD.NSPID",0.2,SCOLS_FL_TRUNC,SCOLS_JSON_STRING,