diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 00:37:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 00:37:00 +0000 |
commit | c6f188def8c5496dbd65c9be6ca3050286db7227 (patch) | |
tree | d8e1e56c728628c15f66cb88a6e54f368c806939 | |
parent | e63a0dee9e559110bcaec494ae5e7fc78c4141c7 (diff) | |
download | busybox-w32-c6f188def8c5496dbd65c9be6ca3050286db7227.tar.gz busybox-w32-c6f188def8c5496dbd65c9be6ca3050286db7227.tar.bz2 busybox-w32-c6f188def8c5496dbd65c9be6ca3050286db7227.zip |
silly size savings and capitalization fixes
-rw-r--r-- | coreutils/ls.c | 2 | ||||
-rw-r--r-- | coreutils/sum.c | 2 | ||||
-rw-r--r-- | e2fsprogs/blkid/dev.c | 2 | ||||
-rw-r--r-- | e2fsprogs/blkid/read.c | 2 | ||||
-rw-r--r-- | e2fsprogs/fsck.c | 2 | ||||
-rw-r--r-- | e2fsprogs/lsattr.c | 4 | ||||
-rw-r--r-- | e2fsprogs/uuid/uuid_time.c | 2 | ||||
-rw-r--r-- | miscutils/hdparm.c | 26 | ||||
-rw-r--r-- | modutils/lsmod.c | 4 | ||||
-rw-r--r-- | networking/ether-wake.c | 2 | ||||
-rw-r--r-- | networking/interface.c | 10 | ||||
-rw-r--r-- | networking/libiproute/ipaddress.c | 16 | ||||
-rw-r--r-- | networking/libiproute/iproute.c | 30 | ||||
-rw-r--r-- | networking/libiproute/iptunnel.c | 22 | ||||
-rw-r--r-- | networking/nslookup.c | 4 | ||||
-rw-r--r-- | networking/ping.c | 2 | ||||
-rw-r--r-- | networking/ping6.c | 2 | ||||
-rw-r--r-- | procps/fuser.c | 2 | ||||
-rw-r--r-- | shell/lash.c | 2 | ||||
-rw-r--r-- | shell/msh.c | 4 | ||||
-rw-r--r-- | util-linux/fdisk.c | 10 | ||||
-rw-r--r-- | util-linux/fdisk_osf.c | 4 | ||||
-rw-r--r-- | util-linux/fsck_minix.c | 4 | ||||
-rw-r--r-- | util-linux/getopt.c | 2 |
24 files changed, 81 insertions, 81 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index f34e83ebe..40e922846 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -485,7 +485,7 @@ static void showdirs(struct dnode **dn, int ndirs, int first) | |||
485 | for (i = 0; i < ndirs; i++) { | 485 | for (i = 0; i < ndirs; i++) { |
486 | if (all_fmt & (DISP_DIRNAME | DISP_RECURSIVE)) { | 486 | if (all_fmt & (DISP_DIRNAME | DISP_RECURSIVE)) { |
487 | if (!first) | 487 | if (!first) |
488 | printf("\n"); | 488 | puts(""); |
489 | first = 0; | 489 | first = 0; |
490 | printf("%s:\n", dn[i]->fullname); | 490 | printf("%s:\n", dn[i]->fullname); |
491 | } | 491 | } |
diff --git a/coreutils/sum.c b/coreutils/sum.c index 61ca582a1..d663e34dd 100644 --- a/coreutils/sum.c +++ b/coreutils/sum.c | |||
@@ -65,7 +65,7 @@ static int bsd_sum_file(const char *file, int print_name) | |||
65 | if (print_name > 1) | 65 | if (print_name > 1) |
66 | puts(file); | 66 | puts(file); |
67 | else | 67 | else |
68 | printf("\n"); | 68 | puts(""); |
69 | out: | 69 | out: |
70 | return ret; | 70 | return ret; |
71 | } | 71 | } |
diff --git a/e2fsprogs/blkid/dev.c b/e2fsprogs/blkid/dev.c index c2b756c81..b34d4a965 100644 --- a/e2fsprogs/blkid/dev.c +++ b/e2fsprogs/blkid/dev.c | |||
@@ -82,7 +82,7 @@ void blkid_debug_dump_dev(blkid_dev dev) | |||
82 | else | 82 | else |
83 | printf(" tag: NULL\n"); | 83 | printf(" tag: NULL\n"); |
84 | } | 84 | } |
85 | printf("\n"); | 85 | puts(""); |
86 | } | 86 | } |
87 | #endif | 87 | #endif |
88 | 88 | ||
diff --git a/e2fsprogs/blkid/read.c b/e2fsprogs/blkid/read.c index 624c907f3..bb02a2e21 100644 --- a/e2fsprogs/blkid/read.c +++ b/e2fsprogs/blkid/read.c | |||
@@ -437,7 +437,7 @@ static void debug_dump_dev(blkid_dev dev) | |||
437 | else | 437 | else |
438 | printf(" tag: NULL\n"); | 438 | printf(" tag: NULL\n"); |
439 | } | 439 | } |
440 | printf("\n"); | 440 | puts(""); |
441 | } | 441 | } |
442 | 442 | ||
443 | int main(int argc, char**argv) | 443 | int main(int argc, char**argv) |
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c index 06ba4b206..53657fb25 100644 --- a/e2fsprogs/fsck.c +++ b/e2fsprogs/fsck.c | |||
@@ -614,7 +614,7 @@ static int execute(const char *type, const char *device, const char *mntpt, | |||
614 | mntpt ? mntpt : device); | 614 | mntpt ? mntpt : device); |
615 | for (i=0; i < argc; i++) | 615 | for (i=0; i < argc; i++) |
616 | printf("%s ", argv[i]); | 616 | printf("%s ", argv[i]); |
617 | printf("\n"); | 617 | puts(""); |
618 | } | 618 | } |
619 | 619 | ||
620 | /* Fork and execute the correct program. */ | 620 | /* Fork and execute the correct program. */ |
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c index 13d5acf01..eb28fcbab 100644 --- a/e2fsprogs/lsattr.c +++ b/e2fsprogs/lsattr.c | |||
@@ -57,7 +57,7 @@ static void list_attributes(const char *name) | |||
57 | if (flags & OPT_PF_LONG) { | 57 | if (flags & OPT_PF_LONG) { |
58 | printf("%-28s ", name); | 58 | printf("%-28s ", name); |
59 | print_flags(stdout, fsflags, PFOPT_LONG); | 59 | print_flags(stdout, fsflags, PFOPT_LONG); |
60 | printf("\n"); | 60 | puts(""); |
61 | } else { | 61 | } else { |
62 | print_flags(stdout, fsflags, 0); | 62 | print_flags(stdout, fsflags, 0); |
63 | printf(" %s\n", name); | 63 | printf(" %s\n", name); |
@@ -102,7 +102,7 @@ static int lsattr_dir_proc(const char *dir_name, struct dirent *de, | |||
102 | (de->d_name[1] != '.' && de->d_name[2] != '\0')))) { | 102 | (de->d_name[1] != '.' && de->d_name[2] != '\0')))) { |
103 | printf("\n%s:\n", path); | 103 | printf("\n%s:\n", path); |
104 | iterate_on_dir(path, lsattr_dir_proc, NULL); | 104 | iterate_on_dir(path, lsattr_dir_proc, NULL); |
105 | printf("\n"); | 105 | puts(""); |
106 | } | 106 | } |
107 | } | 107 | } |
108 | } | 108 | } |
diff --git a/e2fsprogs/uuid/uuid_time.c b/e2fsprogs/uuid/uuid_time.c index df91ec376..b54d67322 100644 --- a/e2fsprogs/uuid/uuid_time.c +++ b/e2fsprogs/uuid/uuid_time.c | |||
@@ -147,7 +147,7 @@ main(int argc, char **argv) | |||
147 | printf(" (random)\n"); | 147 | printf(" (random)\n"); |
148 | break; | 148 | break; |
149 | default: | 149 | default: |
150 | printf("\n"); | 150 | puts(""); |
151 | } | 151 | } |
152 | if (type != 1) { | 152 | if (type != 1) { |
153 | printf("Warning: not a time-based UUID, so UUID time " | 153 | printf("Warning: not a time-based UUID, so UUID time " |
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index a30f4e0d7..90c163973 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -547,7 +547,7 @@ static void print_ascii(uint16_t *p, uint8_t length) { | |||
547 | printf("%c%c",(char)0x00ff&((*p)>>8),(char)(*p)&0x00ff); | 547 | printf("%c%c",(char)0x00ff&((*p)>>8),(char)(*p)&0x00ff); |
548 | p++; | 548 | p++; |
549 | } | 549 | } |
550 | printf("\n"); | 550 | puts(""); |
551 | } | 551 | } |
552 | 552 | ||
553 | // Parse 512 byte disk identification block and print much crap. | 553 | // Parse 512 byte disk identification block and print much crap. |
@@ -574,7 +574,7 @@ static void identify(uint16_t *id_supplied) | |||
574 | chksum &= 0xff; | 574 | chksum &= 0xff; |
575 | 575 | ||
576 | /* check if we recognise the device type */ | 576 | /* check if we recognise the device type */ |
577 | printf("\n"); | 577 | puts(""); |
578 | if (!(val[GEN_CONFIG] & NOT_ATA)) | 578 | if (!(val[GEN_CONFIG] & NOT_ATA)) |
579 | { | 579 | { |
580 | dev = ATA_DEV; | 580 | dev = ATA_DEV; |
@@ -706,7 +706,7 @@ static void identify(uint16_t *id_supplied) | |||
706 | else if (like_std > std) | 706 | else if (like_std > std) |
707 | printf("& some of %u\n",like_std); | 707 | printf("& some of %u\n",like_std); |
708 | else | 708 | else |
709 | printf("\n"); | 709 | puts(""); |
710 | } | 710 | } |
711 | else | 711 | else |
712 | { | 712 | { |
@@ -818,7 +818,7 @@ static void identify(uint16_t *id_supplied) | |||
818 | if (bbbig > 1000) | 818 | if (bbbig > 1000) |
819 | printf("(%"PRIu64" GB)\n", bbbig/1000); | 819 | printf("(%"PRIu64" GB)\n", bbbig/1000); |
820 | else | 820 | else |
821 | printf("\n"); | 821 | puts(""); |
822 | } | 822 | } |
823 | 823 | ||
824 | /* hw support of commands (capabilities) */ | 824 | /* hw support of commands (capabilities) */ |
@@ -870,7 +870,7 @@ static void identify(uint16_t *id_supplied) | |||
870 | if ((like_std > 3) && ((val[CAPAB_1] & VALID) == VALID_VAL)) | 870 | if ((like_std > 3) && ((val[CAPAB_1] & VALID) == VALID_VAL)) |
871 | printf(", %s device specific minimum\n",(val[CAPAB_1] & MIN_STANDBY_TIMER)?"with":"no"); | 871 | printf(", %s device specific minimum\n",(val[CAPAB_1] & MIN_STANDBY_TIMER)?"with":"no"); |
872 | else | 872 | else |
873 | printf("\n"); | 873 | puts(""); |
874 | } | 874 | } |
875 | printf("\tR/W multiple sector transfer: "); | 875 | printf("\tR/W multiple sector transfer: "); |
876 | if ((like_std < 3) && !(val[SECTOR_XFER_MAX] & SECTOR_XFER)) | 876 | if ((like_std < 3) && !(val[SECTOR_XFER_MAX] & SECTOR_XFER)) |
@@ -913,7 +913,7 @@ static void identify(uint16_t *id_supplied) | |||
913 | printf("\tOverlap support:"); | 913 | printf("\tOverlap support:"); |
914 | if (val[PKT_REL]) printf(" %uus to release bus.",val[PKT_REL]); | 914 | if (val[PKT_REL]) printf(" %uus to release bus.",val[PKT_REL]); |
915 | if (val[SVC_NBSY]) printf(" %uus to clear BSY after SERVICE cmd.",val[SVC_NBSY]); | 915 | if (val[SVC_NBSY]) printf(" %uus to clear BSY after SERVICE cmd.",val[SVC_NBSY]); |
916 | printf("\n"); | 916 | puts(""); |
917 | } | 917 | } |
918 | } | 918 | } |
919 | 919 | ||
@@ -944,7 +944,7 @@ static void identify(uint16_t *id_supplied) | |||
944 | err_dma += mode_loop(jj,kk,'u',&have_mode); | 944 | err_dma += mode_loop(jj,kk,'u',&have_mode); |
945 | } | 945 | } |
946 | if (err_dma || !have_mode) printf("(?)"); | 946 | if (err_dma || !have_mode) printf("(?)"); |
947 | printf("\n"); | 947 | puts(""); |
948 | 948 | ||
949 | if ((dev == ATAPI_DEV) && (eqpt != CDROM) && (val[CAPAB_0] & DMA_IL_SUP)) | 949 | if ((dev == ATAPI_DEV) && (eqpt != CDROM) && (val[CAPAB_0] & DMA_IL_SUP)) |
950 | printf("\t\tInterleaved DMA support\n"); | 950 | printf("\t\tInterleaved DMA support\n"); |
@@ -955,7 +955,7 @@ static void identify(uint16_t *id_supplied) | |||
955 | printf("\t\tCycle time:"); | 955 | printf("\t\tCycle time:"); |
956 | if (val[DMA_TIME_MIN]) printf(" min=%uns",val[DMA_TIME_MIN]); | 956 | if (val[DMA_TIME_MIN]) printf(" min=%uns",val[DMA_TIME_MIN]); |
957 | if (val[DMA_TIME_NORM]) printf(" recommended=%uns",val[DMA_TIME_NORM]); | 957 | if (val[DMA_TIME_NORM]) printf(" recommended=%uns",val[DMA_TIME_NORM]); |
958 | printf("\n"); | 958 | puts(""); |
959 | } | 959 | } |
960 | } | 960 | } |
961 | 961 | ||
@@ -971,13 +971,13 @@ static void identify(uint16_t *id_supplied) | |||
971 | if (jj & 0x0001) printf("pio%d ",ii); | 971 | if (jj & 0x0001) printf("pio%d ",ii); |
972 | jj >>=1; | 972 | jj >>=1; |
973 | } | 973 | } |
974 | printf("\n"); | 974 | puts(""); |
975 | } | 975 | } |
976 | else if (((min_std < 5) || (eqpt == CDROM)) && (val[PIO_MODE] & MODE) ) | 976 | else if (((min_std < 5) || (eqpt == CDROM)) && (val[PIO_MODE] & MODE) ) |
977 | { | 977 | { |
978 | for (ii = 0; ii <= val[PIO_MODE]>>8; ii++) | 978 | for (ii = 0; ii <= val[PIO_MODE]>>8; ii++) |
979 | printf("pio%d ",ii); | 979 | printf("pio%d ",ii); |
980 | printf("\n"); | 980 | puts(""); |
981 | } | 981 | } |
982 | else | 982 | else |
983 | printf("unknown\n"); | 983 | printf("unknown\n"); |
@@ -989,7 +989,7 @@ static void identify(uint16_t *id_supplied) | |||
989 | printf("\t\tCycle time:"); | 989 | printf("\t\tCycle time:"); |
990 | if (val[PIO_NO_FLOW]) printf(" no flow control=%uns", val[PIO_NO_FLOW]); | 990 | if (val[PIO_NO_FLOW]) printf(" no flow control=%uns", val[PIO_NO_FLOW]); |
991 | if (val[PIO_FLOW]) printf(" IORDY flow control=%uns", val[PIO_FLOW]); | 991 | if (val[PIO_FLOW]) printf(" IORDY flow control=%uns", val[PIO_FLOW]); |
992 | printf("\n"); | 992 | puts(""); |
993 | } | 993 | } |
994 | } | 994 | } |
995 | 995 | ||
@@ -1049,7 +1049,7 @@ static void identify(uint16_t *id_supplied) | |||
1049 | printf("\t"); | 1049 | printf("\t"); |
1050 | if (jj) printf("%umin for %sSECURITY ERASE UNIT. ", jj==ERASE_BITS ? 508 : jj<<1, ""); | 1050 | if (jj) printf("%umin for %sSECURITY ERASE UNIT. ", jj==ERASE_BITS ? 508 : jj<<1, ""); |
1051 | if (kk) printf("%umin for %sSECURITY ERASE UNIT. ", kk==ERASE_BITS ? 508 : kk<<1, "ENHANCED "); | 1051 | if (kk) printf("%umin for %sSECURITY ERASE UNIT. ", kk==ERASE_BITS ? 508 : kk<<1, "ENHANCED "); |
1052 | printf("\n"); | 1052 | puts(""); |
1053 | } | 1053 | } |
1054 | } | 1054 | } |
1055 | 1055 | ||
@@ -1194,7 +1194,7 @@ static void dump_identity(const struct hd_driveid *id) | |||
1194 | else | 1194 | else |
1195 | printf("off"); | 1195 | printf("off"); |
1196 | } | 1196 | } |
1197 | printf("\n"); | 1197 | puts(""); |
1198 | 1198 | ||
1199 | if (!(id->field_valid&1)) | 1199 | if (!(id->field_valid&1)) |
1200 | printf(" (maybe):"); | 1200 | printf(" (maybe):"); |
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index 2bf4afbe9..f462aafc3 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | 16 | ||
17 | #ifndef CONFIG_FEATURE_CHECK_TAINTED_MODULE | 17 | #ifndef CONFIG_FEATURE_CHECK_TAINTED_MODULE |
18 | static void check_tainted(void) { printf("\n"); } | 18 | static void check_tainted(void) { puts(""); } |
19 | #else | 19 | #else |
20 | #define TAINT_FILENAME "/proc/sys/kernel/tainted" | 20 | #define TAINT_FILENAME "/proc/sys/kernel/tainted" |
21 | #define TAINT_PROPRIETORY_MODULE (1<<0) | 21 | #define TAINT_PROPRIETORY_MODULE (1<<0) |
@@ -127,7 +127,7 @@ int lsmod_main(int argc, char **argv) | |||
127 | } | 127 | } |
128 | if (count) printf("]"); | 128 | if (count) printf("]"); |
129 | 129 | ||
130 | printf("\n"); | 130 | puts(""); |
131 | } | 131 | } |
132 | 132 | ||
133 | #ifdef CONFIG_FEATURE_CLEAN_UP | 133 | #ifdef CONFIG_FEATURE_CLEAN_UP |
diff --git a/networking/ether-wake.c b/networking/ether-wake.c index 9d616d561..aaed4a0ff 100644 --- a/networking/ether-wake.c +++ b/networking/ether-wake.c | |||
@@ -92,7 +92,7 @@ void bb_debug_dump_packet(unsigned char *outpack, int pktsize) | |||
92 | printf("packet dump:\n"); | 92 | printf("packet dump:\n"); |
93 | for (i = 0; i < pktsize; ++i) { | 93 | for (i = 0; i < pktsize; ++i) { |
94 | printf("%2.2x ", outpack[i]); | 94 | printf("%2.2x ", outpack[i]); |
95 | if (i % 20 == 19) printf("\n"); | 95 | if (i % 20 == 19) puts(""); |
96 | } | 96 | } |
97 | printf("\n\n"); | 97 | printf("\n\n"); |
98 | } | 98 | } |
diff --git a/networking/interface.c b/networking/interface.c index 4594293e4..6c8e93879 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -938,7 +938,7 @@ static void ife_print(struct interface *ptr) | |||
938 | printf("(auto)"); | 938 | printf("(auto)"); |
939 | } | 939 | } |
940 | #endif | 940 | #endif |
941 | printf("\n"); | 941 | puts(""); |
942 | 942 | ||
943 | if (ptr->has_ip) { | 943 | if (ptr->has_ip) { |
944 | printf(" %s addr:%s ", ap->name, | 944 | printf(" %s addr:%s ", ap->name, |
@@ -1007,7 +1007,7 @@ static void ife_print(struct interface *ptr) | |||
1007 | default: | 1007 | default: |
1008 | printf("Unknown"); | 1008 | printf("Unknown"); |
1009 | } | 1009 | } |
1010 | printf("\n"); | 1010 | puts(""); |
1011 | } | 1011 | } |
1012 | } | 1012 | } |
1013 | fclose(f); | 1013 | fclose(f); |
@@ -1034,7 +1034,7 @@ static void ife_print(struct interface *ptr) | |||
1034 | if (ptr->outfill || ptr->keepalive) | 1034 | if (ptr->outfill || ptr->keepalive) |
1035 | printf(" Outfill:%d Keepalive:%d", ptr->outfill, ptr->keepalive); | 1035 | printf(" Outfill:%d Keepalive:%d", ptr->outfill, ptr->keepalive); |
1036 | #endif | 1036 | #endif |
1037 | printf("\n"); | 1037 | puts(""); |
1038 | 1038 | ||
1039 | /* If needed, display the interface statistics. */ | 1039 | /* If needed, display the interface statistics. */ |
1040 | 1040 | ||
@@ -1083,9 +1083,9 @@ static void ife_print(struct interface *ptr) | |||
1083 | } | 1083 | } |
1084 | if (ptr->map.dma) | 1084 | if (ptr->map.dma) |
1085 | printf("DMA chan:%x ", ptr->map.dma); | 1085 | printf("DMA chan:%x ", ptr->map.dma); |
1086 | printf("\n"); | 1086 | puts(""); |
1087 | } | 1087 | } |
1088 | printf("\n"); | 1088 | puts(""); |
1089 | } | 1089 | } |
1090 | 1090 | ||
1091 | 1091 | ||
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 262d3e356..35fd099fa 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -435,7 +435,7 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush) | |||
435 | return -1; | 435 | return -1; |
436 | } | 436 | } |
437 | if (filter.family == AF_PACKET) { | 437 | if (filter.family == AF_PACKET) { |
438 | bb_error_msg("Cannot flush link addresses."); | 438 | bb_error_msg("cannot flush link addresses"); |
439 | return -1; | 439 | return -1; |
440 | } | 440 | } |
441 | } | 441 | } |
@@ -488,17 +488,17 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush) | |||
488 | exit(1); | 488 | exit(1); |
489 | 489 | ||
490 | if (rtnl_wilddump_request(&rth, preferred_family, RTM_GETLINK) < 0) { | 490 | if (rtnl_wilddump_request(&rth, preferred_family, RTM_GETLINK) < 0) { |
491 | bb_perror_msg_and_die("Cannot send dump request"); | 491 | bb_perror_msg_and_die("cannot send dump request"); |
492 | } | 492 | } |
493 | 493 | ||
494 | if (rtnl_dump_filter(&rth, store_nlmsg, &linfo, NULL, NULL) < 0) { | 494 | if (rtnl_dump_filter(&rth, store_nlmsg, &linfo, NULL, NULL) < 0) { |
495 | bb_error_msg_and_die("Dump terminated"); | 495 | bb_error_msg_and_die("dump terminated"); |
496 | } | 496 | } |
497 | 497 | ||
498 | if (filter_dev) { | 498 | if (filter_dev) { |
499 | filter.ifindex = ll_name_to_index(filter_dev); | 499 | filter.ifindex = ll_name_to_index(filter_dev); |
500 | if (filter.ifindex <= 0) { | 500 | if (filter.ifindex <= 0) { |
501 | bb_error_msg("Device \"%s\" does not exist", filter_dev); | 501 | bb_error_msg("device \"%s\" does not exist", filter_dev); |
502 | return -1; | 502 | return -1; |
503 | } | 503 | } |
504 | } | 504 | } |
@@ -532,11 +532,11 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush) | |||
532 | 532 | ||
533 | if (filter.family != AF_PACKET) { | 533 | if (filter.family != AF_PACKET) { |
534 | if (rtnl_wilddump_request(&rth, filter.family, RTM_GETADDR) < 0) { | 534 | if (rtnl_wilddump_request(&rth, filter.family, RTM_GETADDR) < 0) { |
535 | bb_perror_msg_and_die("Cannot send dump request"); | 535 | bb_perror_msg_and_die("cannot send dump request"); |
536 | } | 536 | } |
537 | 537 | ||
538 | if (rtnl_dump_filter(&rth, store_nlmsg, &ainfo, NULL, NULL) < 0) { | 538 | if (rtnl_dump_filter(&rth, store_nlmsg, &ainfo, NULL, NULL) < 0) { |
539 | bb_error_msg_and_die("Dump terminated"); | 539 | bb_error_msg_and_die("dump terminated"); |
540 | } | 540 | } |
541 | } | 541 | } |
542 | 542 | ||
@@ -763,7 +763,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv) | |||
763 | inet_prefix brd; | 763 | inet_prefix brd; |
764 | int i; | 764 | int i; |
765 | if (req.ifa.ifa_family != AF_INET) { | 765 | if (req.ifa.ifa_family != AF_INET) { |
766 | bb_error_msg("Broadcast can be set only for IPv4 addresses"); | 766 | bb_error_msg("broadcast can be set only for IPv4 addresses"); |
767 | return -1; | 767 | return -1; |
768 | } | 768 | } |
769 | brd = peer; | 769 | brd = peer; |
@@ -787,7 +787,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv) | |||
787 | ll_init_map(&rth); | 787 | ll_init_map(&rth); |
788 | 788 | ||
789 | if ((req.ifa.ifa_index = ll_name_to_index(d)) == 0) { | 789 | if ((req.ifa.ifa_index = ll_name_to_index(d)) == 0) { |
790 | bb_error_msg("Cannot find device \"%s\"", d); | 790 | bb_error_msg("cannot find device \"%s\"", d); |
791 | return -1; | 791 | return -1; |
792 | } | 792 | } |
793 | 793 | ||
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 6c902eb0e..077c9190e 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -398,7 +398,7 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv) | |||
398 | 398 | ||
399 | if (d) { | 399 | if (d) { |
400 | if ((idx = ll_name_to_index(d)) == 0) { | 400 | if ((idx = ll_name_to_index(d)) == 0) { |
401 | bb_error_msg("Cannot find device \"%s\"", d); | 401 | bb_error_msg("cannot find device \"%s\"", d); |
402 | return -1; | 402 | return -1; |
403 | } | 403 | } |
404 | addattr32(&req.n, sizeof(req), RTA_OIF, idx); | 404 | addattr32(&req.n, sizeof(req), RTA_OIF, idx); |
@@ -571,7 +571,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
571 | 571 | ||
572 | if (id) { | 572 | if (id) { |
573 | if ((idx = ll_name_to_index(id)) == 0) { | 573 | if ((idx = ll_name_to_index(id)) == 0) { |
574 | bb_error_msg("Cannot find device \"%s\"", id); | 574 | bb_error_msg("cannot find device \"%s\"", id); |
575 | return -1; | 575 | return -1; |
576 | } | 576 | } |
577 | filter.iif = idx; | 577 | filter.iif = idx; |
@@ -579,7 +579,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
579 | } | 579 | } |
580 | if (od) { | 580 | if (od) { |
581 | if ((idx = ll_name_to_index(od)) == 0) { | 581 | if ((idx = ll_name_to_index(od)) == 0) { |
582 | bb_error_msg("Cannot find device \"%s\"", od); | 582 | bb_error_msg("cannot find device \"%s\"", od); |
583 | } | 583 | } |
584 | filter.oif = idx; | 584 | filter.oif = idx; |
585 | filter.oifmask = -1; | 585 | filter.oifmask = -1; |
@@ -608,7 +608,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
608 | } | 608 | } |
609 | filter.flushed = 0; | 609 | filter.flushed = 0; |
610 | if (rtnl_dump_filter(&rth, print_route, stdout, NULL, NULL) < 0) { | 610 | if (rtnl_dump_filter(&rth, print_route, stdout, NULL, NULL) < 0) { |
611 | bb_error_msg("Flush terminated"); | 611 | bb_error_msg("flush terminated"); |
612 | return -1; | 612 | return -1; |
613 | } | 613 | } |
614 | if (filter.flushed == 0) { | 614 | if (filter.flushed == 0) { |
@@ -622,16 +622,16 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
622 | 622 | ||
623 | if (filter.tb != -1) { | 623 | if (filter.tb != -1) { |
624 | if (rtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE) < 0) { | 624 | if (rtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE) < 0) { |
625 | bb_perror_msg_and_die("Cannot send dump request"); | 625 | bb_perror_msg_and_die("cannot send dump request"); |
626 | } | 626 | } |
627 | } else { | 627 | } else { |
628 | if (rtnl_rtcache_request(&rth, do_ipv6) < 0) { | 628 | if (rtnl_rtcache_request(&rth, do_ipv6) < 0) { |
629 | bb_perror_msg_and_die("Cannot send dump request"); | 629 | bb_perror_msg_and_die("cannot send dump request"); |
630 | } | 630 | } |
631 | } | 631 | } |
632 | 632 | ||
633 | if (rtnl_dump_filter(&rth, print_route, stdout, NULL, NULL) < 0) { | 633 | if (rtnl_dump_filter(&rth, print_route, stdout, NULL, NULL) < 0) { |
634 | bb_error_msg_and_die("Dump terminated"); | 634 | bb_error_msg_and_die("dump terminated"); |
635 | } | 635 | } |
636 | 636 | ||
637 | exit(0); | 637 | exit(0); |
@@ -733,14 +733,14 @@ static int iproute_get(int argc, char **argv) | |||
733 | 733 | ||
734 | if (idev) { | 734 | if (idev) { |
735 | if ((idx = ll_name_to_index(idev)) == 0) { | 735 | if ((idx = ll_name_to_index(idev)) == 0) { |
736 | bb_error_msg("Cannot find device \"%s\"", idev); | 736 | bb_error_msg("cannot find device \"%s\"", idev); |
737 | return -1; | 737 | return -1; |
738 | } | 738 | } |
739 | addattr32(&req.n, sizeof(req), RTA_IIF, idx); | 739 | addattr32(&req.n, sizeof(req), RTA_IIF, idx); |
740 | } | 740 | } |
741 | if (odev) { | 741 | if (odev) { |
742 | if ((idx = ll_name_to_index(odev)) == 0) { | 742 | if ((idx = ll_name_to_index(odev)) == 0) { |
743 | bb_error_msg("Cannot find device \"%s\"", odev); | 743 | bb_error_msg("cannot find device \"%s\"", odev); |
744 | return -1; | 744 | return -1; |
745 | } | 745 | } |
746 | addattr32(&req.n, sizeof(req), RTA_OIF, idx); | 746 | addattr32(&req.n, sizeof(req), RTA_OIF, idx); |
@@ -761,16 +761,16 @@ static int iproute_get(int argc, char **argv) | |||
761 | struct rtattr * tb[RTA_MAX+1]; | 761 | struct rtattr * tb[RTA_MAX+1]; |
762 | 762 | ||
763 | if (print_route(NULL, &req.n, (void*)stdout) < 0) { | 763 | if (print_route(NULL, &req.n, (void*)stdout) < 0) { |
764 | bb_error_msg_and_die("An error :-)"); | 764 | bb_error_msg_and_die("an error :-)"); |
765 | } | 765 | } |
766 | 766 | ||
767 | if (req.n.nlmsg_type != RTM_NEWROUTE) { | 767 | if (req.n.nlmsg_type != RTM_NEWROUTE) { |
768 | bb_error_msg("Not a route?"); | 768 | bb_error_msg("not a route?"); |
769 | return -1; | 769 | return -1; |
770 | } | 770 | } |
771 | len -= NLMSG_LENGTH(sizeof(*r)); | 771 | len -= NLMSG_LENGTH(sizeof(*r)); |
772 | if (len < 0) { | 772 | if (len < 0) { |
773 | bb_error_msg("Wrong len %d", len); | 773 | bb_error_msg("wrong len %d", len); |
774 | return -1; | 774 | return -1; |
775 | } | 775 | } |
776 | 776 | ||
@@ -781,7 +781,7 @@ static int iproute_get(int argc, char **argv) | |||
781 | tb[RTA_PREFSRC]->rta_type = RTA_SRC; | 781 | tb[RTA_PREFSRC]->rta_type = RTA_SRC; |
782 | r->rtm_src_len = 8*RTA_PAYLOAD(tb[RTA_PREFSRC]); | 782 | r->rtm_src_len = 8*RTA_PAYLOAD(tb[RTA_PREFSRC]); |
783 | } else if (!tb[RTA_SRC]) { | 783 | } else if (!tb[RTA_SRC]) { |
784 | bb_error_msg("Failed to connect the route"); | 784 | bb_error_msg("failed to connect the route"); |
785 | return -1; | 785 | return -1; |
786 | } | 786 | } |
787 | if (!odev && tb[RTA_OIF]) { | 787 | if (!odev && tb[RTA_OIF]) { |
@@ -802,7 +802,7 @@ static int iproute_get(int argc, char **argv) | |||
802 | } | 802 | } |
803 | 803 | ||
804 | if (print_route(NULL, &req.n, (void*)stdout) < 0) { | 804 | if (print_route(NULL, &req.n, (void*)stdout) < 0) { |
805 | bb_error_msg_and_die("An error :-)"); | 805 | bb_error_msg_and_die("an error :-)"); |
806 | } | 806 | } |
807 | 807 | ||
808 | exit(0); | 808 | exit(0); |
@@ -849,7 +849,7 @@ int do_iproute(int argc, char **argv) | |||
849 | case 12: /* flush */ | 849 | case 12: /* flush */ |
850 | return iproute_list_or_flush(argc-1, argv+1, 1); | 850 | return iproute_list_or_flush(argc-1, argv+1, 1); |
851 | default: | 851 | default: |
852 | bb_error_msg_and_die("Unknown command %s", *argv); | 852 | bb_error_msg_and_die("unknown command %s", *argv); |
853 | } | 853 | } |
854 | 854 | ||
855 | return iproute_modify(cmd, flags, argc-1, argv+1); | 855 | return iproute_modify(cmd, flags, argc-1, argv+1); |
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index 806d8657d..2b9d3055e 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c | |||
@@ -164,26 +164,26 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p) | |||
164 | if (strcmp(*argv, "ipip") == 0 || | 164 | if (strcmp(*argv, "ipip") == 0 || |
165 | strcmp(*argv, "ip/ip") == 0) { | 165 | strcmp(*argv, "ip/ip") == 0) { |
166 | if (p->iph.protocol && p->iph.protocol != IPPROTO_IPIP) { | 166 | if (p->iph.protocol && p->iph.protocol != IPPROTO_IPIP) { |
167 | bb_error_msg("You managed to ask for more than one tunnel mode."); | 167 | bb_error_msg("you managed to ask for more than one tunnel mode"); |
168 | exit(-1); | 168 | exit(-1); |
169 | } | 169 | } |
170 | p->iph.protocol = IPPROTO_IPIP; | 170 | p->iph.protocol = IPPROTO_IPIP; |
171 | } else if (strcmp(*argv, "gre") == 0 || | 171 | } else if (strcmp(*argv, "gre") == 0 || |
172 | strcmp(*argv, "gre/ip") == 0) { | 172 | strcmp(*argv, "gre/ip") == 0) { |
173 | if (p->iph.protocol && p->iph.protocol != IPPROTO_GRE) { | 173 | if (p->iph.protocol && p->iph.protocol != IPPROTO_GRE) { |
174 | bb_error_msg("You managed to ask for more than one tunnel mode."); | 174 | bb_error_msg("you managed to ask for more than one tunnel mode"); |
175 | exit(-1); | 175 | exit(-1); |
176 | } | 176 | } |
177 | p->iph.protocol = IPPROTO_GRE; | 177 | p->iph.protocol = IPPROTO_GRE; |
178 | } else if (strcmp(*argv, "sit") == 0 || | 178 | } else if (strcmp(*argv, "sit") == 0 || |
179 | strcmp(*argv, "ipv6/ip") == 0) { | 179 | strcmp(*argv, "ipv6/ip") == 0) { |
180 | if (p->iph.protocol && p->iph.protocol != IPPROTO_IPV6) { | 180 | if (p->iph.protocol && p->iph.protocol != IPPROTO_IPV6) { |
181 | bb_error_msg("You managed to ask for more than one tunnel mode."); | 181 | bb_error_msg("you managed to ask for more than one tunnel mode"); |
182 | exit(-1); | 182 | exit(-1); |
183 | } | 183 | } |
184 | p->iph.protocol = IPPROTO_IPV6; | 184 | p->iph.protocol = IPPROTO_IPV6; |
185 | } else { | 185 | } else { |
186 | bb_error_msg("Cannot guess tunnel mode."); | 186 | bb_error_msg("cannot guess tunnel mode"); |
187 | exit(-1); | 187 | exit(-1); |
188 | } | 188 | } |
189 | } else if (strcmp(*argv, "key") == 0) { | 189 | } else if (strcmp(*argv, "key") == 0) { |
@@ -306,7 +306,7 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p) | |||
306 | 306 | ||
307 | if (p->iph.protocol == IPPROTO_IPIP || p->iph.protocol == IPPROTO_IPV6) { | 307 | if (p->iph.protocol == IPPROTO_IPIP || p->iph.protocol == IPPROTO_IPV6) { |
308 | if ((p->i_flags & GRE_KEY) || (p->o_flags & GRE_KEY)) { | 308 | if ((p->i_flags & GRE_KEY) || (p->o_flags & GRE_KEY)) { |
309 | bb_error_msg("Keys are not allowed with ipip and sit."); | 309 | bb_error_msg("keys are not allowed with ipip and sit"); |
310 | return -1; | 310 | return -1; |
311 | } | 311 | } |
312 | } | 312 | } |
@@ -326,7 +326,7 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p) | |||
326 | p->o_flags |= GRE_KEY; | 326 | p->o_flags |= GRE_KEY; |
327 | } | 327 | } |
328 | if (IN_MULTICAST(ntohl(p->iph.daddr)) && !p->iph.saddr) { | 328 | if (IN_MULTICAST(ntohl(p->iph.daddr)) && !p->iph.saddr) { |
329 | bb_error_msg("Broadcast tunnel requires a source address."); | 329 | bb_error_msg("broadcast tunnel requires a source address"); |
330 | return -1; | 330 | return -1; |
331 | } | 331 | } |
332 | return 0; | 332 | return 0; |
@@ -462,7 +462,7 @@ static int do_tunnels_list(struct ip_tunnel_parm *p) | |||
462 | buf[sizeof(buf) - 1] = 0; | 462 | buf[sizeof(buf) - 1] = 0; |
463 | if ((ptr = strchr(buf, ':')) == NULL || | 463 | if ((ptr = strchr(buf, ':')) == NULL || |
464 | (*ptr++ = 0, sscanf(buf, "%s", name) != 1)) { | 464 | (*ptr++ = 0, sscanf(buf, "%s", name) != 1)) { |
465 | bb_error_msg("Wrong format of /proc/net/dev. Sorry."); | 465 | bb_error_msg("wrong format of /proc/net/dev. Sorry"); |
466 | return -1; | 466 | return -1; |
467 | } | 467 | } |
468 | if (sscanf(ptr, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu", | 468 | if (sscanf(ptr, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu", |
@@ -475,7 +475,7 @@ static int do_tunnels_list(struct ip_tunnel_parm *p) | |||
475 | continue; | 475 | continue; |
476 | type = do_ioctl_get_iftype(name); | 476 | type = do_ioctl_get_iftype(name); |
477 | if (type == -1) { | 477 | if (type == -1) { |
478 | bb_error_msg("Failed to get type of [%s]", name); | 478 | bb_error_msg("failed to get type of [%s]", name); |
479 | continue; | 479 | continue; |
480 | } | 480 | } |
481 | if (type != ARPHRD_TUNNEL && type != ARPHRD_IPGRE && type != ARPHRD_SIT) | 481 | if (type != ARPHRD_TUNNEL && type != ARPHRD_IPGRE && type != ARPHRD_SIT) |
@@ -490,7 +490,7 @@ static int do_tunnels_list(struct ip_tunnel_parm *p) | |||
490 | (p->i_key && p1.i_key != p->i_key)) | 490 | (p->i_key && p1.i_key != p->i_key)) |
491 | continue; | 491 | continue; |
492 | print_tunnel(&p1); | 492 | print_tunnel(&p1); |
493 | printf("\n"); | 493 | puts(""); |
494 | } | 494 | } |
495 | return 0; | 495 | return 0; |
496 | } | 496 | } |
@@ -521,7 +521,7 @@ static int do_show(int argc, char **argv) | |||
521 | return -1; | 521 | return -1; |
522 | 522 | ||
523 | print_tunnel(&p); | 523 | print_tunnel(&p); |
524 | printf("\n"); | 524 | puts(""); |
525 | return 0; | 525 | return 0; |
526 | } | 526 | } |
527 | 527 | ||
@@ -541,6 +541,6 @@ int do_iptunnel(int argc, char **argv) | |||
541 | } else | 541 | } else |
542 | return do_show(0, NULL); | 542 | return do_show(0, NULL); |
543 | 543 | ||
544 | bb_error_msg("Command \"%s\" is unknown.", *argv); | 544 | bb_error_msg("command \"%s\" is unknown", *argv); |
545 | exit(-1); | 545 | exit(-1); |
546 | } | 546 | } |
diff --git a/networking/nslookup.c b/networking/nslookup.c index b8e454cde..54e71c47e 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c | |||
@@ -73,7 +73,7 @@ static int addr_list_fprint(char **h_addr_list) | |||
73 | } | 73 | } |
74 | 74 | ||
75 | } | 75 | } |
76 | printf("\n"); | 76 | puts(""); |
77 | return 0; | 77 | return 0; |
78 | } | 78 | } |
79 | 79 | ||
@@ -123,7 +123,7 @@ static inline void server_print(void) | |||
123 | char *ip = inet_ntoa(def.sin_addr); | 123 | char *ip = inet_ntoa(def.sin_addr); |
124 | 124 | ||
125 | hostent_fprint(gethostbyaddr_wrapper(ip), "Server:"); | 125 | hostent_fprint(gethostbyaddr_wrapper(ip), "Server:"); |
126 | printf("\n"); | 126 | puts(""); |
127 | } | 127 | } |
128 | 128 | ||
129 | /* alter the global _res nameserver structure to use | 129 | /* alter the global _res nameserver structure to use |
diff --git a/networking/ping.c b/networking/ping.c index ebde007b6..782b801c8 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -314,7 +314,7 @@ static void unpack(char *buf, int sz, struct sockaddr_in *from) | |||
314 | printf(" time=%lu.%lu ms", triptime / 10, triptime % 10); | 314 | printf(" time=%lu.%lu ms", triptime / 10, triptime % 10); |
315 | if (dupflag) | 315 | if (dupflag) |
316 | printf(" (DUP!)"); | 316 | printf(" (DUP!)"); |
317 | printf("\n"); | 317 | puts(""); |
318 | } else | 318 | } else |
319 | if (icmppkt->icmp_type != ICMP_ECHO) | 319 | if (icmppkt->icmp_type != ICMP_ECHO) |
320 | bb_error_msg("warning: got ICMP %d (%s)", | 320 | bb_error_msg("warning: got ICMP %d (%s)", |
diff --git a/networking/ping6.c b/networking/ping6.c index 62dc4cc2d..a064f2f0b 100644 --- a/networking/ping6.c +++ b/networking/ping6.c | |||
@@ -305,7 +305,7 @@ static void unpack(char *packet, int sz, struct sockaddr_in6 *from, int hoplimit | |||
305 | triptime / 10, triptime % 10); | 305 | triptime / 10, triptime % 10); |
306 | if (dupflag) | 306 | if (dupflag) |
307 | printf(" (DUP!)"); | 307 | printf(" (DUP!)"); |
308 | printf("\n"); | 308 | puts(""); |
309 | } else | 309 | } else |
310 | if (icmppkt->icmp6_type != ICMP6_ECHO_REQUEST) | 310 | if (icmppkt->icmp6_type != ICMP6_ECHO_REQUEST) |
311 | bb_error_msg("warning: got ICMP %d (%s)", | 311 | bb_error_msg("warning: got ICMP %d (%s)", |
diff --git a/procps/fuser.c b/procps/fuser.c index 4906797cf..4628cdf5c 100644 --- a/procps/fuser.c +++ b/procps/fuser.c | |||
@@ -277,7 +277,7 @@ static int fuser_print_pid_list(pid_list *plist) | |||
277 | if(curr->pid > 0) printf("%d ", curr->pid); | 277 | if(curr->pid > 0) printf("%d ", curr->pid); |
278 | curr = curr->next; | 278 | curr = curr->next; |
279 | } | 279 | } |
280 | printf("\n"); | 280 | puts(""); |
281 | return 1; | 281 | return 1; |
282 | } | 282 | } |
283 | 283 | ||
diff --git a/shell/lash.c b/shell/lash.c index c499612cc..96c0b3007 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -678,7 +678,7 @@ static int get_command(FILE * source, char *command) | |||
678 | 678 | ||
679 | if (!fgets(command, BUFSIZ - 2, source)) { | 679 | if (!fgets(command, BUFSIZ - 2, source)) { |
680 | if (source == stdin) | 680 | if (source == stdin) |
681 | printf("\n"); | 681 | puts(""); |
682 | return 1; | 682 | return 1; |
683 | } | 683 | } |
684 | 684 | ||
diff --git a/shell/msh.c b/shell/msh.c index cb2947137..95b4244d7 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -3250,7 +3250,7 @@ static int dohelp(struct op *t) | |||
3250 | continue; | 3250 | continue; |
3251 | col += printf("%s%s", ((col == 0) ? "\t" : " "), x->name); | 3251 | col += printf("%s%s", ((col == 0) ? "\t" : " "), x->name); |
3252 | if (col > 60) { | 3252 | if (col > 60) { |
3253 | printf("\n"); | 3253 | puts(""); |
3254 | col = 0; | 3254 | col = 0; |
3255 | } | 3255 | } |
3256 | } | 3256 | } |
@@ -3267,7 +3267,7 @@ static int dohelp(struct op *t) | |||
3267 | 3267 | ||
3268 | col += printf("%s%s", ((col == 0) ? "\t" : " "), applet->name); | 3268 | col += printf("%s%s", ((col == 0) ? "\t" : " "), applet->name); |
3269 | if (col > 60) { | 3269 | if (col > 60) { |
3270 | printf("\n"); | 3270 | puts(""); |
3271 | col = 0; | 3271 | col = 0; |
3272 | } | 3272 | } |
3273 | } | 3273 | } |
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 3061f0d8d..40a8d1bae 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
@@ -2534,13 +2534,13 @@ print_buffer(char *pbuffer) | |||
2534 | printf("0x%03X:", i); | 2534 | printf("0x%03X:", i); |
2535 | printf(" %02X", (unsigned char) pbuffer[i]); | 2535 | printf(" %02X", (unsigned char) pbuffer[i]); |
2536 | if (l == MAX_PER_LINE - 1) { | 2536 | if (l == MAX_PER_LINE - 1) { |
2537 | printf("\n"); | 2537 | puts(""); |
2538 | l = -1; | 2538 | l = -1; |
2539 | } | 2539 | } |
2540 | } | 2540 | } |
2541 | if (l > 0) | 2541 | if (l > 0) |
2542 | printf("\n"); | 2542 | puts(""); |
2543 | printf("\n"); | 2543 | puts(""); |
2544 | } | 2544 | } |
2545 | 2545 | ||
2546 | 2546 | ||
@@ -2650,7 +2650,7 @@ xselect(void) | |||
2650 | break; | 2650 | break; |
2651 | case 'q': | 2651 | case 'q': |
2652 | close(fd); | 2652 | close(fd); |
2653 | printf("\n"); | 2653 | puts(""); |
2654 | exit(0); | 2654 | exit(0); |
2655 | case 'r': | 2655 | case 'r': |
2656 | return; | 2656 | return; |
@@ -3022,7 +3022,7 @@ int fdisk_main(int argc, char **argv) | |||
3022 | break; | 3022 | break; |
3023 | case 'q': | 3023 | case 'q': |
3024 | close(fd); | 3024 | close(fd); |
3025 | printf("\n"); | 3025 | puts(""); |
3026 | return 0; | 3026 | return 0; |
3027 | case 's': | 3027 | case 's': |
3028 | #ifdef CONFIG_FEATURE_SUN_LABEL | 3028 | #ifdef CONFIG_FEATURE_SUN_LABEL |
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index 17267d54b..71cf138ee 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c | |||
@@ -512,7 +512,7 @@ xbsd_print_disklabel(int show_all) | |||
512 | printf(_(" ecc")); | 512 | printf(_(" ecc")); |
513 | if (lp->d_flags & BSD_D_BADSECT) | 513 | if (lp->d_flags & BSD_D_BADSECT) |
514 | printf(_(" badsect")); | 514 | printf(_(" badsect")); |
515 | printf("\n"); | 515 | puts(""); |
516 | /* On various machines the fields of *lp are short/int/long */ | 516 | /* On various machines the fields of *lp are short/int/long */ |
517 | /* In order to avoid problems, we cast them all to long. */ | 517 | /* In order to avoid problems, we cast them all to long. */ |
518 | printf(_("bytes/sector: %ld\n"), (long) lp->d_secsize); | 518 | printf(_("bytes/sector: %ld\n"), (long) lp->d_secsize); |
@@ -579,7 +579,7 @@ xbsd_print_disklabel(int show_all) | |||
579 | printf("%22.22s", ""); | 579 | printf("%22.22s", ""); |
580 | break; | 580 | break; |
581 | } | 581 | } |
582 | printf("\n"); | 582 | puts(""); |
583 | } | 583 | } |
584 | } | 584 | } |
585 | } | 585 | } |
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index a2ca7a566..3ebc58b1f 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c | |||
@@ -322,12 +322,12 @@ static int ask(const char *string, int def) | |||
322 | int c; | 322 | int c; |
323 | 323 | ||
324 | if (!repair) { | 324 | if (!repair) { |
325 | printf("\n"); | 325 | puts(""); |
326 | errors_uncorrected = 1; | 326 | errors_uncorrected = 1; |
327 | return 0; | 327 | return 0; |
328 | } | 328 | } |
329 | if (automatic) { | 329 | if (automatic) { |
330 | printf("\n"); | 330 | puts(""); |
331 | if (!def) | 331 | if (!def) |
332 | errors_uncorrected = 1; | 332 | errors_uncorrected = 1; |
333 | return def; | 333 | return def; |
diff --git a/util-linux/getopt.c b/util-linux/getopt.c index 02bb218b3..17f3c4297 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c | |||
@@ -172,7 +172,7 @@ int generate_output(char * argv[],int argc,const char *optstr, | |||
172 | printf(" --"); | 172 | printf(" --"); |
173 | while (optind < argc) | 173 | while (optind < argc) |
174 | printf(" %s",normalize(argv[optind++])); | 174 | printf(" %s",normalize(argv[optind++])); |
175 | printf("\n"); | 175 | puts(""); |
176 | } | 176 | } |
177 | return exit_code; | 177 | return exit_code; |
178 | } | 178 | } |