diff options
| author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-06 19:02:46 +0000 |
|---|---|---|
| committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-06 19:02:46 +0000 |
| commit | cecd0d24015e677572d09fdd8f278beec46719ad (patch) | |
| tree | 4342fd4f88b84459ef5c2c2c2c6fb86863a7112f | |
| parent | 601d93b47b8ac41f1fd763db15f05b6419c0b398 (diff) | |
| download | busybox-w32-cecd0d24015e677572d09fdd8f278beec46719ad.tar.gz busybox-w32-cecd0d24015e677572d09fdd8f278beec46719ad.tar.bz2 busybox-w32-cecd0d24015e677572d09fdd8f278beec46719ad.zip | |
removed a lot of trailing \n in bb_msg() calls. It is added
automatically by function itself.
git-svn-id: svn://busybox.net/trunk/busybox@16059 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -rw-r--r-- | archival/dpkg.c | 6 | ||||
| -rw-r--r-- | archival/libunarchive/decompress_unzip.c | 2 | ||||
| -rw-r--r-- | archival/libunarchive/get_header_cpio.c | 2 | ||||
| -rw-r--r-- | e2fsprogs/e2fsck.c | 22 | ||||
| -rw-r--r-- | e2fsprogs/tune2fs.c | 6 | ||||
| -rw-r--r-- | editors/awk.c | 2 | ||||
| -rw-r--r-- | editors/sed.c | 2 | ||||
| -rw-r--r-- | libbb/xfuncs.c | 2 | ||||
| -rw-r--r-- | loginutils/passwd.c | 10 | ||||
| -rw-r--r-- | loginutils/sulogin.c | 6 | ||||
| -rw-r--r-- | miscutils/makedevs.c | 2 | ||||
| -rw-r--r-- | miscutils/rx.c | 4 | ||||
| -rw-r--r-- | modutils/insmod.c | 2 | ||||
| -rw-r--r-- | util-linux/mount.c | 2 |
14 files changed, 35 insertions, 35 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 98f4f9725..163d91f19 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
| @@ -492,7 +492,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole | |||
| 492 | else if (strncmp(version, ">=", offset_ch) == 0) { | 492 | else if (strncmp(version, ">=", offset_ch) == 0) { |
| 493 | edge->operator = VER_MORE_EQUAL; | 493 | edge->operator = VER_MORE_EQUAL; |
| 494 | } else { | 494 | } else { |
| 495 | bb_error_msg_and_die("Illegal operator\n"); | 495 | bb_error_msg_and_die("Illegal operator"); |
| 496 | } | 496 | } |
| 497 | } | 497 | } |
| 498 | /* skip to start of version numbers */ | 498 | /* skip to start of version numbers */ |
| @@ -1136,7 +1136,7 @@ static int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count) | |||
| 1136 | * EDGE_PRE_DEPENDS == OR_PRE_DEPENDS -1 | 1136 | * EDGE_PRE_DEPENDS == OR_PRE_DEPENDS -1 |
| 1137 | */ | 1137 | */ |
| 1138 | if ( root_of_alternatives && package_edge->type != root_of_alternatives->type - 1) | 1138 | if ( root_of_alternatives && package_edge->type != root_of_alternatives->type - 1) |
| 1139 | bb_error_msg_and_die("Fatal error. Package dependencies corrupt: %d != %d - 1 \n", | 1139 | bb_error_msg_and_die("Fatal error. Package dependencies corrupt: %d != %d - 1", |
| 1140 | package_edge->type, root_of_alternatives->type); | 1140 | package_edge->type, root_of_alternatives->type); |
| 1141 | 1141 | ||
| 1142 | if (package_hashtable[package_num] != NULL) | 1142 | if (package_hashtable[package_num] != NULL) |
| @@ -1718,7 +1718,7 @@ int dpkg_main(int argc, char **argv) | |||
| 1718 | search_name_hashtable(argv[optind]), | 1718 | search_name_hashtable(argv[optind]), |
| 1719 | search_name_hashtable("ANY"), VER_ANY); | 1719 | search_name_hashtable("ANY"), VER_ANY); |
| 1720 | if (package_hashtable[deb_file[deb_count]->package] == NULL) { | 1720 | if (package_hashtable[deb_file[deb_count]->package] == NULL) { |
| 1721 | bb_error_msg_and_die("Package %s is uninstalled or unknown\n", argv[optind]); | 1721 | bb_error_msg_and_die("Package %s is uninstalled or unknown", argv[optind]); |
| 1722 | } | 1722 | } |
| 1723 | package_num = deb_file[deb_count]->package; | 1723 | package_num = deb_file[deb_count]->package; |
| 1724 | status_num = search_status_hashtable(name_hashtable[package_hashtable[package_num]->name]); | 1724 | status_num = search_status_hashtable(name_hashtable[package_hashtable[package_num]->name]); |
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index 7362da8c2..c0203cc4a 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c | |||
| @@ -770,7 +770,7 @@ static int inflate_block(int *e) | |||
| 770 | } | 770 | } |
| 771 | default: | 771 | default: |
| 772 | /* bad block type */ | 772 | /* bad block type */ |
| 773 | bb_error_msg_and_die("bad block type %d\n", t); | 773 | bb_error_msg_and_die("bad block type %d", t); |
| 774 | } | 774 | } |
| 775 | } | 775 | } |
| 776 | 776 | ||
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c index d405d0e1b..bc766c6aa 100644 --- a/archival/libunarchive/get_header_cpio.c +++ b/archival/libunarchive/get_header_cpio.c | |||
| @@ -31,7 +31,7 @@ char get_header_cpio(archive_handle_t *archive_handle) | |||
| 31 | oldtmp = NULL; | 31 | oldtmp = NULL; |
| 32 | 32 | ||
| 33 | while (tmp) { | 33 | while (tmp) { |
| 34 | bb_error_msg_and_die("need to fix this\n"); | 34 | bb_error_msg_and_die("need to fix this"); |
| 35 | if (tmp->entry->link_name) { /* Found a hardlink ready to be extracted */ | 35 | if (tmp->entry->link_name) { /* Found a hardlink ready to be extracted */ |
| 36 | file_header = tmp->entry; | 36 | file_header = tmp->entry; |
| 37 | if (oldtmp) { | 37 | if (oldtmp) { |
diff --git a/e2fsprogs/e2fsck.c b/e2fsprogs/e2fsck.c index 0282d328f..4c0614add 100644 --- a/e2fsprogs/e2fsck.c +++ b/e2fsprogs/e2fsck.c | |||
| @@ -1469,7 +1469,7 @@ static void ll_rw_block(int rw, int nr, struct buffer_head *bhp[]) | |||
| 1469 | bh->b_blocknr, | 1469 | bh->b_blocknr, |
| 1470 | 1, bh->b_data); | 1470 | 1, bh->b_data); |
| 1471 | if (retval) { | 1471 | if (retval) { |
| 1472 | bb_error_msg("while reading block %lu\n", | 1472 | bb_error_msg("while reading block %lu", |
| 1473 | (unsigned long) bh->b_blocknr); | 1473 | (unsigned long) bh->b_blocknr); |
| 1474 | bh->b_err = retval; | 1474 | bh->b_err = retval; |
| 1475 | continue; | 1475 | continue; |
| @@ -1480,7 +1480,7 @@ static void ll_rw_block(int rw, int nr, struct buffer_head *bhp[]) | |||
| 1480 | bh->b_blocknr, | 1480 | bh->b_blocknr, |
| 1481 | 1, bh->b_data); | 1481 | 1, bh->b_data); |
| 1482 | if (retval) { | 1482 | if (retval) { |
| 1483 | bb_error_msg("while writing block %lu\n", | 1483 | bb_error_msg("while writing block %lu", |
| 1484 | (unsigned long) bh->b_blocknr); | 1484 | (unsigned long) bh->b_blocknr); |
| 1485 | bh->b_err = retval; | 1485 | bh->b_err = retval; |
| 1486 | continue; | 1486 | continue; |
| @@ -1796,7 +1796,7 @@ static errcode_t e2fsck_journal_load(journal_t *journal) | |||
| 1796 | 1796 | ||
| 1797 | ll_rw_block(READ, 1, &jbh); | 1797 | ll_rw_block(READ, 1, &jbh); |
| 1798 | if (jbh->b_err) { | 1798 | if (jbh->b_err) { |
| 1799 | bb_error_msg(_("reading journal superblock\n")); | 1799 | bb_error_msg(_("reading journal superblock")); |
| 1800 | return jbh->b_err; | 1800 | return jbh->b_err; |
| 1801 | } | 1801 | } |
| 1802 | 1802 | ||
| @@ -1852,7 +1852,7 @@ static errcode_t e2fsck_journal_load(journal_t *journal) | |||
| 1852 | * format to be able to proceed safely, so any other checks that | 1852 | * format to be able to proceed safely, so any other checks that |
| 1853 | * fail we should attempt to recover from. */ | 1853 | * fail we should attempt to recover from. */ |
| 1854 | if (jsb->s_blocksize != htonl(journal->j_blocksize)) { | 1854 | if (jsb->s_blocksize != htonl(journal->j_blocksize)) { |
| 1855 | bb_error_msg(_("%s: no valid journal superblock found\n"), | 1855 | bb_error_msg(_("%s: no valid journal superblock found"), |
| 1856 | ctx->device_name); | 1856 | ctx->device_name); |
| 1857 | return EXT2_ET_CORRUPT_SUPERBLOCK; | 1857 | return EXT2_ET_CORRUPT_SUPERBLOCK; |
| 1858 | } | 1858 | } |
| @@ -1860,7 +1860,7 @@ static errcode_t e2fsck_journal_load(journal_t *journal) | |||
| 1860 | if (ntohl(jsb->s_maxlen) < journal->j_maxlen) | 1860 | if (ntohl(jsb->s_maxlen) < journal->j_maxlen) |
| 1861 | journal->j_maxlen = ntohl(jsb->s_maxlen); | 1861 | journal->j_maxlen = ntohl(jsb->s_maxlen); |
| 1862 | else if (ntohl(jsb->s_maxlen) > journal->j_maxlen) { | 1862 | else if (ntohl(jsb->s_maxlen) > journal->j_maxlen) { |
| 1863 | bb_error_msg(_("%s: journal too short\n"), | 1863 | bb_error_msg(_("%s: journal too short"), |
| 1864 | ctx->device_name); | 1864 | ctx->device_name); |
| 1865 | return EXT2_ET_CORRUPT_SUPERBLOCK; | 1865 | return EXT2_ET_CORRUPT_SUPERBLOCK; |
| 1866 | } | 1866 | } |
| @@ -5108,7 +5108,7 @@ static int delete_file_block(ext2_filsys fs, | |||
| 5108 | p = (struct dup_block *) dnode_get(n); | 5108 | p = (struct dup_block *) dnode_get(n); |
| 5109 | decrement_badcount(ctx, *block_nr, p); | 5109 | decrement_badcount(ctx, *block_nr, p); |
| 5110 | } else | 5110 | } else |
| 5111 | bb_error_msg(_("internal error; can't find dup_blk for %d\n"), | 5111 | bb_error_msg(_("internal error; can't find dup_blk for %d"), |
| 5112 | *block_nr); | 5112 | *block_nr); |
| 5113 | } else { | 5113 | } else { |
| 5114 | ext2fs_unmark_block_bitmap(ctx->block_found_map, *block_nr); | 5114 | ext2fs_unmark_block_bitmap(ctx->block_found_map, *block_nr); |
| @@ -5241,7 +5241,7 @@ static int clone_file_block(ext2_filsys fs, | |||
| 5241 | ext2fs_mark_block_bitmap(fs->block_map, new_block); | 5241 | ext2fs_mark_block_bitmap(fs->block_map, new_block); |
| 5242 | return BLOCK_CHANGED; | 5242 | return BLOCK_CHANGED; |
| 5243 | } else | 5243 | } else |
| 5244 | bb_error_msg(_("internal error; can't find dup_blk for %d\n"), | 5244 | bb_error_msg(_("internal error; can't find dup_blk for %d"), |
| 5245 | *block_nr); | 5245 | *block_nr); |
| 5246 | } | 5246 | } |
| 5247 | return 0; | 5247 | return 0; |
| @@ -12657,7 +12657,7 @@ static void check_mount(e2fsck_t ctx) | |||
| 12657 | 12657 | ||
| 12658 | printf(_("%s is mounted. "), ctx->filesystem_name); | 12658 | printf(_("%s is mounted. "), ctx->filesystem_name); |
| 12659 | if (!ctx->interactive) | 12659 | if (!ctx->interactive) |
| 12660 | bb_error_msg_and_die(_("Cannot continue, aborting.\n\n")); | 12660 | bb_error_msg_and_die(_("Cannot continue, aborting.")); |
| 12661 | printf(_("\n\n\007\007\007\007WARNING!!! " | 12661 | printf(_("\n\n\007\007\007\007WARNING!!! " |
| 12662 | "Running e2fsck on a mounted filesystem may cause\n" | 12662 | "Running e2fsck on a mounted filesystem may cause\n" |
| 12663 | "SEVERE filesystem damage.\007\007\007\n\n")); | 12663 | "SEVERE filesystem damage.\007\007\007\n\n")); |
| @@ -13377,7 +13377,7 @@ restart: | |||
| 13377 | * happen, unless the hardware or | 13377 | * happen, unless the hardware or |
| 13378 | * device driver is being bogus. | 13378 | * device driver is being bogus. |
| 13379 | */ | 13379 | */ |
| 13380 | bb_error_msg(_("unable to set superblock flags on %s\n"), ctx->device_name); | 13380 | bb_error_msg(_("unable to set superblock flags on %s"), ctx->device_name); |
| 13381 | bb_error_msg_and_die(0); | 13381 | bb_error_msg_and_die(0); |
| 13382 | } | 13382 | } |
| 13383 | retval = e2fsck_run_ext3_journal(ctx); | 13383 | retval = e2fsck_run_ext3_journal(ctx); |
| @@ -13409,12 +13409,12 @@ restart: | |||
| 13409 | #ifdef ENABLE_COMPRESSION | 13409 | #ifdef ENABLE_COMPRESSION |
| 13410 | /* FIXME - do we support this at all? */ | 13410 | /* FIXME - do we support this at all? */ |
| 13411 | if (sb->s_feature_incompat & EXT2_FEATURE_INCOMPAT_COMPRESSION) | 13411 | if (sb->s_feature_incompat & EXT2_FEATURE_INCOMPAT_COMPRESSION) |
| 13412 | bb_error_msg(_("Warning: compression support is experimental.\n")); | 13412 | bb_error_msg(_("Warning: compression support is experimental.")); |
| 13413 | #endif | 13413 | #endif |
| 13414 | #ifndef ENABLE_HTREE | 13414 | #ifndef ENABLE_HTREE |
| 13415 | if (sb->s_feature_compat & EXT2_FEATURE_COMPAT_DIR_INDEX) { | 13415 | if (sb->s_feature_compat & EXT2_FEATURE_COMPAT_DIR_INDEX) { |
| 13416 | bb_error_msg(_("E2fsck not compiled with HTREE support,\n\t" | 13416 | bb_error_msg(_("E2fsck not compiled with HTREE support,\n\t" |
| 13417 | "but filesystem %s has HTREE directories.\n"), | 13417 | "but filesystem %s has HTREE directories."), |
| 13418 | ctx->device_name); | 13418 | ctx->device_name); |
| 13419 | goto get_newer; | 13419 | goto get_newer; |
| 13420 | } | 13420 | } |
diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c index 8ec346108..fba8b6c1f 100644 --- a/e2fsprogs/tune2fs.c +++ b/e2fsprogs/tune2fs.c | |||
| @@ -663,7 +663,7 @@ int tune2fs_main(int argc, char **argv) | |||
| 663 | if (s_flag == 1) { | 663 | if (s_flag == 1) { |
| 664 | if (sb->s_feature_ro_compat & | 664 | if (sb->s_feature_ro_compat & |
| 665 | EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER) | 665 | EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER) |
| 666 | bb_error_msg("\nThe filesystem already has sparse superblocks\n"); | 666 | bb_error_msg("\nThe filesystem already has sparse superblocks"); |
| 667 | else { | 667 | else { |
| 668 | sb->s_feature_ro_compat |= | 668 | sb->s_feature_ro_compat |= |
| 669 | EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER; | 669 | EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER; |
| @@ -675,7 +675,7 @@ int tune2fs_main(int argc, char **argv) | |||
| 675 | if (s_flag == 0) { | 675 | if (s_flag == 0) { |
| 676 | if (!(sb->s_feature_ro_compat & | 676 | if (!(sb->s_feature_ro_compat & |
| 677 | EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER)) | 677 | EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER)) |
| 678 | bb_error_msg("\nThe filesystem already has sparse superblocks disabled\n"); | 678 | bb_error_msg("\nThe filesystem already has sparse superblocks disabled"); |
| 679 | else { | 679 | else { |
| 680 | sb->s_feature_ro_compat &= | 680 | sb->s_feature_ro_compat &= |
| 681 | ~EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER; | 681 | ~EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER; |
| @@ -698,7 +698,7 @@ int tune2fs_main(int argc, char **argv) | |||
| 698 | } | 698 | } |
| 699 | if (L_flag) { | 699 | if (L_flag) { |
| 700 | if (strlen(new_label) > sizeof(sb->s_volume_name)) | 700 | if (strlen(new_label) > sizeof(sb->s_volume_name)) |
| 701 | bb_error_msg("Warning: label too long, truncating\n"); | 701 | bb_error_msg("Warning: label too long, truncating"); |
| 702 | memset(sb->s_volume_name, 0, sizeof(sb->s_volume_name)); | 702 | memset(sb->s_volume_name, 0, sizeof(sb->s_volume_name)); |
| 703 | safe_strncpy(sb->s_volume_name, new_label, | 703 | safe_strncpy(sb->s_volume_name, new_label, |
| 704 | sizeof(sb->s_volume_name)); | 704 | sizeof(sb->s_volume_name)); |
diff --git a/editors/awk.c b/editors/awk.c index 049673df3..6e81aa8f4 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
| @@ -2691,7 +2691,7 @@ keep_going: | |||
| 2691 | free(s); | 2691 | free(s); |
| 2692 | break; | 2692 | break; |
| 2693 | case 'W': | 2693 | case 'W': |
| 2694 | bb_error_msg("Warning: unrecognized option '-W %s' ignored\n", optarg); | 2694 | bb_error_msg("Warning: unrecognized option '-W %s' ignored", optarg); |
| 2695 | break; | 2695 | break; |
| 2696 | 2696 | ||
| 2697 | default: | 2697 | default: |
diff --git a/editors/sed.c b/editors/sed.c index d5cf3f219..40eef80bc 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
| @@ -512,7 +512,7 @@ static void add_cmd(char *cmdstr) | |||
| 512 | 512 | ||
| 513 | cmdstr++; | 513 | cmdstr++; |
| 514 | idx = get_address(cmdstr, &sed_cmd->end_line, &sed_cmd->end_match); | 514 | idx = get_address(cmdstr, &sed_cmd->end_line, &sed_cmd->end_match); |
| 515 | if (!idx) bb_error_msg_and_die("no address after comma\n"); | 515 | if (!idx) bb_error_msg_and_die("no address after comma"); |
| 516 | cmdstr += idx; | 516 | cmdstr += idx; |
| 517 | } | 517 | } |
| 518 | 518 | ||
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 4e407e45f..435379de2 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
| @@ -109,7 +109,7 @@ FILE *xfopen(const char *path, const char *mode) | |||
| 109 | int xopen(const char *pathname, int flags) | 109 | int xopen(const char *pathname, int flags) |
| 110 | { | 110 | { |
| 111 | if (ENABLE_DEBUG && (flags & O_CREAT)) | 111 | if (ENABLE_DEBUG && (flags & O_CREAT)) |
| 112 | bb_error_msg_and_die("xopen() with O_CREAT\n"); | 112 | bb_error_msg_and_die("xopen() with O_CREAT"); |
| 113 | 113 | ||
| 114 | return xopen3(pathname, flags, 0777); | 114 | return xopen3(pathname, flags, 0777); |
| 115 | } | 115 | } |
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index aa75dd260..b0770e65c 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c | |||
| @@ -170,11 +170,11 @@ int passwd_main(int argc, char **argv) | |||
| 170 | } | 170 | } |
| 171 | pw = getpwnam(name); | 171 | pw = getpwnam(name); |
| 172 | if (!pw) { | 172 | if (!pw) { |
| 173 | bb_error_msg_and_die("Unknown user %s\n", name); | 173 | bb_error_msg_and_die("Unknown user %s", name); |
| 174 | } | 174 | } |
| 175 | if (!amroot && pw->pw_uid != getuid()) { | 175 | if (!amroot && pw->pw_uid != getuid()) { |
| 176 | syslog(LOG_WARNING, "can't change pwd for `%s'", name); | 176 | syslog(LOG_WARNING, "can't change pwd for `%s'", name); |
| 177 | bb_error_msg_and_die("Permission denied.\n"); | 177 | bb_error_msg_and_die("Permission denied."); |
| 178 | } | 178 | } |
| 179 | if (ENABLE_FEATURE_SHADOWPASSWDS) { | 179 | if (ENABLE_FEATURE_SHADOWPASSWDS) { |
| 180 | struct spwd *sp = getspnam(name); | 180 | struct spwd *sp = getspnam(name); |
| @@ -188,12 +188,12 @@ int passwd_main(int argc, char **argv) | |||
| 188 | if (!amroot) { | 188 | if (!amroot) { |
| 189 | if (cp[0] == '!') { | 189 | if (cp[0] == '!') { |
| 190 | syslog(LOG_WARNING, "password locked for `%s'", np); | 190 | syslog(LOG_WARNING, "password locked for `%s'", np); |
| 191 | bb_error_msg_and_die( "The password for `%s' cannot be changed.\n", np); | 191 | bb_error_msg_and_die( "The password for `%s' cannot be changed.", np); |
| 192 | } | 192 | } |
| 193 | } | 193 | } |
| 194 | printf("Changing password for %s\n", name); | 194 | printf("Changing password for %s\n", name); |
| 195 | if (new_password(pw, amroot, algo)) { | 195 | if (new_password(pw, amroot, algo)) { |
| 196 | bb_error_msg_and_die( "The password for %s is unchanged.\n", name); | 196 | bb_error_msg_and_die( "The password for %s is unchanged.", name); |
| 197 | } | 197 | } |
| 198 | } else if (lflg) { | 198 | } else if (lflg) { |
| 199 | if (crypt_passwd[0] != '!') { | 199 | if (crypt_passwd[0] != '!') { |
| @@ -222,7 +222,7 @@ int passwd_main(int argc, char **argv) | |||
| 222 | printf("Password changed.\n"); | 222 | printf("Password changed.\n"); |
| 223 | } else { | 223 | } else { |
| 224 | syslog(LOG_WARNING, "an error occurred updating the password file"); | 224 | syslog(LOG_WARNING, "an error occurred updating the password file"); |
| 225 | bb_error_msg_and_die("An error occurred updating the password file.\n"); | 225 | bb_error_msg_and_die("An error occurred updating the password file."); |
| 226 | } | 226 | } |
| 227 | if (ENABLE_FEATURE_CLEAN_UP) free(myname); | 227 | if (ENABLE_FEATURE_CLEAN_UP) free(myname); |
| 228 | return (0); | 228 | return (0); |
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index b7e3f6fbf..1c49d324d 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
| @@ -99,7 +99,7 @@ int sulogin_main(int argc, char **argv) | |||
| 99 | } | 99 | } |
| 100 | if (access(bb_path_passwd_file, 0) == -1) { | 100 | if (access(bb_path_passwd_file, 0) == -1) { |
| 101 | syslog(LOG_WARNING, "No password file\n"); | 101 | syslog(LOG_WARNING, "No password file\n"); |
| 102 | bb_error_msg_and_die("No password file\n"); | 102 | bb_error_msg_and_die("No password file"); |
| 103 | } | 103 | } |
| 104 | if (!isatty(0) || !isatty(1) || !isatty(2)) { | 104 | if (!isatty(0) || !isatty(1) || !isatty(2)) { |
| 105 | exit(EXIT_FAILURE); | 105 | exit(EXIT_FAILURE); |
| @@ -113,8 +113,8 @@ int sulogin_main(int argc, char **argv) | |||
| 113 | 113 | ||
| 114 | signal(SIGALRM, catchalarm); | 114 | signal(SIGALRM, catchalarm); |
| 115 | if (!(pwd = getpwnam(name))) { | 115 | if (!(pwd = getpwnam(name))) { |
| 116 | syslog(LOG_WARNING, "No password entry for `root'\n"); | 116 | syslog(LOG_WARNING, "No password entry for `root'"); |
| 117 | bb_error_msg_and_die("No password entry for `root'\n"); | 117 | bb_error_msg_and_die("No password entry for `root'"); |
| 118 | } | 118 | } |
| 119 | pwent = *pwd; | 119 | pwent = *pwd; |
| 120 | #if ENABLE_FEATURE_SHADOWPASSWDS | 120 | #if ENABLE_FEATURE_SHADOWPASSWDS |
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index 70dfc4205..66b4ce00d 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c | |||
| @@ -119,7 +119,7 @@ int makedevs_main(int argc, char **argv) | |||
| 119 | { | 119 | { |
| 120 | if (*line=='\0' || *line=='#' || isspace(*line)) | 120 | if (*line=='\0' || *line=='#' || isspace(*line)) |
| 121 | continue; | 121 | continue; |
| 122 | bb_error_msg("line %d invalid: '%s'\n", linenum, line); | 122 | bb_error_msg("line %d invalid: '%s'", linenum, line); |
| 123 | ret = EXIT_FAILURE; | 123 | ret = EXIT_FAILURE; |
| 124 | continue; | 124 | continue; |
| 125 | } | 125 | } |
diff --git a/miscutils/rx.c b/miscutils/rx.c index 4cc4913e6..91606ecd0 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c | |||
| @@ -266,7 +266,7 @@ int rx_main(int argc, char **argv) | |||
| 266 | filefd = xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666); | 266 | filefd = xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666); |
| 267 | 267 | ||
| 268 | if (tcgetattr(ttyfd, &tty) < 0) | 268 | if (tcgetattr(ttyfd, &tty) < 0) |
| 269 | bb_error_msg_and_die("%s: tcgetattr failed: %m\n", argv[0]); | 269 | bb_perror_msg_and_die("%s: tcgetattr failed", argv[0]); |
| 270 | 270 | ||
| 271 | orig_tty = tty; | 271 | orig_tty = tty; |
| 272 | 272 | ||
| @@ -284,7 +284,7 @@ int rx_main(int argc, char **argv) | |||
| 284 | tcsetattr(ttyfd, TCSAFLUSH, &orig_tty); | 284 | tcsetattr(ttyfd, TCSAFLUSH, &orig_tty); |
| 285 | 285 | ||
| 286 | if (n < 0) | 286 | if (n < 0) |
| 287 | bb_error_msg_and_die("\n%s: receive failed:\n %s\n", | 287 | bb_error_msg_and_die("\n%s: receive failed:\n %s", |
| 288 | argv[0], error_buf); | 288 | argv[0], error_buf); |
| 289 | 289 | ||
| 290 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); | 290 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); |
diff --git a/modutils/insmod.c b/modutils/insmod.c index 3aabadd26..e57dd06dd 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
| @@ -3562,7 +3562,7 @@ static int obj_load_progbits(FILE * fp, struct obj_file* f, char* imagebase) | |||
| 3562 | sec->contents = imagebase + (sec->header.sh_addr - base); | 3562 | sec->contents = imagebase + (sec->header.sh_addr - base); |
| 3563 | fseek(fp, sec->header.sh_offset, SEEK_SET); | 3563 | fseek(fp, sec->header.sh_offset, SEEK_SET); |
| 3564 | if (fread(sec->contents, sec->header.sh_size, 1, fp) != 1) { | 3564 | if (fread(sec->contents, sec->header.sh_size, 1, fp) != 1) { |
| 3565 | bb_error_msg("error reading ELF section data: %s\n", strerror(errno)); | 3565 | bb_perror_msg("error reading ELF section data"); |
| 3566 | return 0; | 3566 | return 0; |
| 3567 | } | 3567 | } |
| 3568 | 3568 | ||
diff --git a/util-linux/mount.c b/util-linux/mount.c index 3b95428a0..e76c7db99 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
| @@ -228,7 +228,7 @@ static int mount_it_now(struct mntent *mp, int vfsflags, char *filteropts) | |||
| 228 | int i; | 228 | int i; |
| 229 | 229 | ||
| 230 | if(!mountTable) | 230 | if(!mountTable) |
| 231 | bb_error_msg("No %s\n",bb_path_mtab_file); | 231 | bb_error_msg("No %s",bb_path_mtab_file); |
| 232 | 232 | ||
| 233 | // Add vfs string flags | 233 | // Add vfs string flags |
| 234 | 234 | ||
