printf("%s\n") -> puts()

This commit is contained in:
Denis Vlasenko 2007-10-01 12:05:12 +00:00
parent 0c97c9d437
commit feb7ae7f01
7 changed files with 15 additions and 15 deletions

View File

@ -276,7 +276,7 @@ int unzip_main(int argc, char **argv)
total_entries++;
} else {
/* short listing -- filenames only */
printf("%s\n", dst_fn);
puts(dst_fn);
}
i = 'n';
} else if (dst_fd == STDOUT_FILENO) { /* Extracting to STDOUT */

View File

@ -92,7 +92,7 @@ int id_main(int argc, char **argv)
if (getcon(&scontext)) {
bb_error_msg_and_die("can't get process context");
}
printf("%s\n", scontext);
puts(scontext);
}
#endif
/* exit */

View File

@ -700,7 +700,7 @@ static void showfiles(void)
printf("%s%-*s", matches[n],
(int)(column_width - strlen(matches[n])), "");
}
printf("%s\n", matches[n]);
puts(matches[n]);
}
}

View File

@ -849,7 +849,7 @@ static void identify(uint16_t *val)
jj >>= 1;
}
}
printf("%s\n", kk ? "" : "\n\tLikely used CD-ROM ATAPI-1");
puts(kk ? "" : "\n\tLikely used CD-ROM ATAPI-1");
/* the cdrom stuff is more like ATA-2 than anything else, so: */
like_std = 2;
}

View File

@ -69,7 +69,7 @@ static int print_host(const char *hostname, const char *header)
unsigned cnt = 0;
printf("%-10s %s\n", header, hostname);
// printf("%s\n", cur->ai_canonname); ?
// puts(cur->ai_canonname); ?
while (cur) {
char *dotted, *revhost;
dotted = xmalloc_sockaddr2dotted_noport(cur->ai_addr);

View File

@ -17,7 +17,7 @@ static int print_matchpathcon(char *path, int noprint)
if (!noprint)
printf("%s\t%s\n", path, buf);
else
printf("%s\n", buf);
puts(buf);
freecon(buf);
return 0;

View File

@ -64,7 +64,7 @@ int losetup_main(int argc, char **argv)
s = query_loop(dev);
if (!s) {
if (opt == 0x4) {
printf("%s\n", dev);
puts(dev);
return EXIT_SUCCESS;
}
} else {