aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-10-01 12:05:12 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-10-01 12:05:12 +0000
commitfeb7ae7f01e13dce31118e5a58b09b237d25e58c (patch)
treeb36f1a78441f586aa8bf5a2c8b055296d30c2777
parent0c97c9d43707da745fe2bc62ab2a69497ceaf666 (diff)
downloadbusybox-w32-feb7ae7f01e13dce31118e5a58b09b237d25e58c.tar.gz
busybox-w32-feb7ae7f01e13dce31118e5a58b09b237d25e58c.tar.bz2
busybox-w32-feb7ae7f01e13dce31118e5a58b09b237d25e58c.zip
printf("%s\n") -> puts()
-rw-r--r--archival/unzip.c18
-rw-r--r--coreutils/id.c2
-rw-r--r--libbb/lineedit.c2
-rw-r--r--miscutils/hdparm.c2
-rw-r--r--networking/nslookup.c2
-rw-r--r--selinux/matchpathcon.c2
-rw-r--r--util-linux/losetup.c2
7 files changed, 15 insertions, 15 deletions
diff --git a/archival/unzip.c b/archival/unzip.c
index 97c743c43..21d4c2535 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -263,9 +263,9 @@ int unzip_main(int argc, char **argv)
263 total_size += zip_header.formatted.ucmpsize; 263 total_size += zip_header.formatted.ucmpsize;
264 264
265 if (listing) { /* List entry */ 265 if (listing) { /* List entry */
266 if (verbose) { 266 if (verbose) {
267 unsigned int dostime = zip_header.formatted.modtime | (zip_header.formatted.moddate << 16); 267 unsigned int dostime = zip_header.formatted.modtime | (zip_header.formatted.moddate << 16);
268 printf("%9u %02u-%02u-%02u %02u:%02u %s\n", 268 printf("%9u %02u-%02u-%02u %02u:%02u %s\n",
269 zip_header.formatted.ucmpsize, 269 zip_header.formatted.ucmpsize,
270 (dostime & 0x01e00000) >> 21, 270 (dostime & 0x01e00000) >> 21,
271 (dostime & 0x001f0000) >> 16, 271 (dostime & 0x001f0000) >> 16,
@@ -273,12 +273,12 @@ int unzip_main(int argc, char **argv)
273 (dostime & 0x0000f800) >> 11, 273 (dostime & 0x0000f800) >> 11,
274 (dostime & 0x000007e0) >> 5, 274 (dostime & 0x000007e0) >> 5,
275 dst_fn); 275 dst_fn);
276 total_entries++; 276 total_entries++;
277 } else { 277 } else {
278 /* short listing -- filenames only */ 278 /* short listing -- filenames only */
279 printf("%s\n", dst_fn); 279 puts(dst_fn);
280 } 280 }
281 i = 'n'; 281 i = 'n';
282 } else if (dst_fd == STDOUT_FILENO) { /* Extracting to STDOUT */ 282 } else if (dst_fd == STDOUT_FILENO) { /* Extracting to STDOUT */
283 i = -1; 283 i = -1;
284 } else if (last_char_is(dst_fn, '/')) { /* Extract directory */ 284 } else if (last_char_is(dst_fn, '/')) { /* Extract directory */
diff --git a/coreutils/id.c b/coreutils/id.c
index 536e946c0..f72a027fa 100644
--- a/coreutils/id.c
+++ b/coreutils/id.c
@@ -92,7 +92,7 @@ int id_main(int argc, char **argv)
92 if (getcon(&scontext)) { 92 if (getcon(&scontext)) {
93 bb_error_msg_and_die("can't get process context"); 93 bb_error_msg_and_die("can't get process context");
94 } 94 }
95 printf("%s\n", scontext); 95 puts(scontext);
96 } 96 }
97#endif 97#endif
98 /* exit */ 98 /* exit */
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 26a49a1c3..ccf8ac52d 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -700,7 +700,7 @@ static void showfiles(void)
700 printf("%s%-*s", matches[n], 700 printf("%s%-*s", matches[n],
701 (int)(column_width - strlen(matches[n])), ""); 701 (int)(column_width - strlen(matches[n])), "");
702 } 702 }
703 printf("%s\n", matches[n]); 703 puts(matches[n]);
704 } 704 }
705} 705}
706 706
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index cb6db78cd..365e24cba 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -849,7 +849,7 @@ static void identify(uint16_t *val)
849 jj >>= 1; 849 jj >>= 1;
850 } 850 }
851 } 851 }
852 printf("%s\n", kk ? "" : "\n\tLikely used CD-ROM ATAPI-1"); 852 puts(kk ? "" : "\n\tLikely used CD-ROM ATAPI-1");
853 /* the cdrom stuff is more like ATA-2 than anything else, so: */ 853 /* the cdrom stuff is more like ATA-2 than anything else, so: */
854 like_std = 2; 854 like_std = 2;
855 } 855 }
diff --git a/networking/nslookup.c b/networking/nslookup.c
index e5bb56f81..fab7e3efc 100644
--- a/networking/nslookup.c
+++ b/networking/nslookup.c
@@ -69,7 +69,7 @@ static int print_host(const char *hostname, const char *header)
69 unsigned cnt = 0; 69 unsigned cnt = 0;
70 70
71 printf("%-10s %s\n", header, hostname); 71 printf("%-10s %s\n", header, hostname);
72 // printf("%s\n", cur->ai_canonname); ? 72 // puts(cur->ai_canonname); ?
73 while (cur) { 73 while (cur) {
74 char *dotted, *revhost; 74 char *dotted, *revhost;
75 dotted = xmalloc_sockaddr2dotted_noport(cur->ai_addr); 75 dotted = xmalloc_sockaddr2dotted_noport(cur->ai_addr);
diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c
index 2bc0a3304..bb7099ea6 100644
--- a/selinux/matchpathcon.c
+++ b/selinux/matchpathcon.c
@@ -17,7 +17,7 @@ static int print_matchpathcon(char *path, int noprint)
17 if (!noprint) 17 if (!noprint)
18 printf("%s\t%s\n", path, buf); 18 printf("%s\t%s\n", path, buf);
19 else 19 else
20 printf("%s\n", buf); 20 puts(buf);
21 21
22 freecon(buf); 22 freecon(buf);
23 return 0; 23 return 0;
diff --git a/util-linux/losetup.c b/util-linux/losetup.c
index 57e8569dc..c61af3d29 100644
--- a/util-linux/losetup.c
+++ b/util-linux/losetup.c
@@ -64,7 +64,7 @@ int losetup_main(int argc, char **argv)
64 s = query_loop(dev); 64 s = query_loop(dev);
65 if (!s) { 65 if (!s) {
66 if (opt == 0x4) { 66 if (opt == 0x4) {
67 printf("%s\n", dev); 67 puts(dev);
68 return EXIT_SUCCESS; 68 return EXIT_SUCCESS;
69 } 69 }
70 } else { 70 } else {