aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-12 23:14:42 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-12 23:14:42 +0000
commit63ea4eeea8e7ce276a9c406be3419cf902a3190c (patch)
treee83648191d52c4de8156ce2c3ad1b35144ccfb15
parent17daa2e2925a15b7781ca8c814a6b26f21728c6b (diff)
downloadbusybox-w32-63ea4eeea8e7ce276a9c406be3419cf902a3190c.tar.gz
busybox-w32-63ea4eeea8e7ce276a9c406be3419cf902a3190c.tar.bz2
busybox-w32-63ea4eeea8e7ce276a9c406be3419cf902a3190c.zip
sv: make code trivially smaller
git-svn-id: svn://busybox.net/trunk/busybox@18078 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--runit/sv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runit/sv.c b/runit/sv.c
index 7635330e4..ac23a2da3 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -117,13 +117,13 @@ static unsigned svstatus_print(const char *m)
117 printf("%lds", (diff < 0 ? 0L : diff)); 117 printf("%lds", (diff < 0 ? 0L : diff));
118 if (pid) { 118 if (pid) {
119 if (!normallyup) printf(", normally down"); 119 if (!normallyup) printf(", normally down");
120 if (svstatus[16]) printf(", paused");
121 if (svstatus[17] == 'd') printf(", want down");
122 if (svstatus[18]) printf(", got TERM");
120 } else { 123 } else {
121 if (normallyup) printf(", normally up"); 124 if (normallyup) printf(", normally up");
125 if (svstatus[17] == 'u') printf(", want up");
122 } 126 }
123 if (pid && svstatus[16]) printf(", paused");
124 if (!pid && (svstatus[17] == 'u')) printf(", want up");
125 if (pid && (svstatus[17] == 'd')) printf(", want down");
126 if (pid && svstatus[18]) printf(", got TERM");
127 return pid ? 1 : 2; 127 return pid ? 1 : 2;
128} 128}
129 129