aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-10-08 11:24:44 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-08 11:24:44 +0200
commit7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae (patch)
treeca48b19046a8de875054b240f7713a09cb9a5358
parentd60752f8c9be5689a249ad518deb38061d4bc45e (diff)
downloadbusybox-w32-7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae.tar.gz
busybox-w32-7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae.tar.bz2
busybox-w32-7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae.zip
join some common strings, -400 bytes
function old new delta print_intel_cstates 499 511 +12 file_insert 355 364 +9 dpkg_main 2944 2940 -4 ifenslave_main 645 640 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 21/-9) Total: 12 bytes text data bss dec hex filename 937564 932 17676 956172 e970c busybox_old 937164 932 17676 955772 e957c busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/dpkg.c8
-rw-r--r--archival/libarchive/data_extract_to_command.c2
-rw-r--r--debianutils/run_parts.c2
-rw-r--r--editors/vi.c8
-rw-r--r--findutils/xargs.c2
-rw-r--r--miscutils/i2c_tools.c36
-rw-r--r--networking/httpd.c6
-rw-r--r--networking/ifenslave.c8
-rw-r--r--procps/powertop.c4
-rw-r--r--runit/runsv.c4
-rw-r--r--util-linux/mkfs_minix.c10
11 files changed, 45 insertions, 45 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 151f0ca43..df7a0db64 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1151,13 +1151,13 @@ static int check_deps(deb_file_t **deb_file, int deb_start /*, int dep_max_count
1151 if (result && number_of_alternatives == 0) { 1151 if (result && number_of_alternatives == 0) {
1152 if (root_of_alternatives) 1152 if (root_of_alternatives)
1153 bb_error_msg_and_die( 1153 bb_error_msg_and_die(
1154 "package %s %sdepends on %s, " 1154 "package %s %sdepends on %s, which %s",
1155 "which cannot be satisfied",
1156 name_hashtable[package_node->name], 1155 name_hashtable[package_node->name],
1157 package_edge->type == EDGE_PRE_DEPENDS ? "pre-" : "", 1156 package_edge->type == EDGE_PRE_DEPENDS ? "pre-" : "",
1158 name_hashtable[root_of_alternatives->name]); 1157 name_hashtable[root_of_alternatives->name],
1158 "cannot be satisfied");
1159 bb_error_msg_and_die( 1159 bb_error_msg_and_die(
1160 "package %s %sdepends on %s, which %s\n", 1160 "package %s %sdepends on %s, which %s",
1161 name_hashtable[package_node->name], 1161 name_hashtable[package_node->name],
1162 package_edge->type == EDGE_PRE_DEPENDS ? "pre-" : "", 1162 package_edge->type == EDGE_PRE_DEPENDS ? "pre-" : "",
1163 name_hashtable[package_edge->name], 1163 name_hashtable[package_edge->name],
diff --git a/archival/libarchive/data_extract_to_command.c b/archival/libarchive/data_extract_to_command.c
index 5b32c2ec8..6f5317a0e 100644
--- a/archival/libarchive/data_extract_to_command.c
+++ b/archival/libarchive/data_extract_to_command.c
@@ -118,7 +118,7 @@ void FAST_FUNC data_extract_to_command(archive_handle_t *archive_handle)
118 bb_error_msg_and_die("'%s' returned status %d", 118 bb_error_msg_and_die("'%s' returned status %d",
119 archive_handle->tar__to_command, WEXITSTATUS(status)); 119 archive_handle->tar__to_command, WEXITSTATUS(status));
120 if (WIFSIGNALED(status)) 120 if (WIFSIGNALED(status))
121 bb_error_msg_and_die("'%s' terminated on signal %d", 121 bb_error_msg_and_die("'%s' terminated by signal %d",
122 archive_handle->tar__to_command, WTERMSIG(status)); 122 archive_handle->tar__to_command, WTERMSIG(status));
123 123
124 if (!BB_MMU) { 124 if (!BB_MMU) {
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c
index 527fae227..dd6fe7d49 100644
--- a/debianutils/run_parts.c
+++ b/debianutils/run_parts.c
@@ -189,7 +189,7 @@ int run_parts_main(int argc UNUSED_PARAM, char **argv)
189 if (ret < 0) 189 if (ret < 0)
190 bb_perror_msg("can't execute '%s'", name); 190 bb_perror_msg("can't execute '%s'", name);
191 else /* ret > 0 */ 191 else /* ret > 0 */
192 bb_error_msg("%s exited with code %d", name, ret & 0xff); 192 bb_error_msg("%s: exit status %u", name, ret & 0xff);
193 193
194 if (option_mask32 & OPT_e) 194 if (option_mask32 & OPT_e)
195 xfunc_die(); 195 xfunc_die();
diff --git a/editors/vi.c b/editors/vi.c
index 3db597ae1..f355712ab 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2910,10 +2910,10 @@ static int file_insert(const char *fn, char *p, int initial)
2910 int fd, size; 2910 int fd, size;
2911 struct stat statbuf; 2911 struct stat statbuf;
2912 2912
2913 if (p < text || p > end) { 2913 if (p < text)
2914 status_line_bold("Trying to insert file outside of memory"); 2914 p = text;
2915 return cnt; 2915 if (p > end)
2916 } 2916 p = end;
2917 2917
2918 fd = open(fn, O_RDONLY); 2918 fd = open(fn, O_RDONLY);
2919 if (fd < 0) { 2919 if (fd < 0) {
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 25e47ec89..5870b8a16 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -122,7 +122,7 @@ static int xargs_exec(void)
122 return 124; 122 return 124;
123 } 123 }
124 if (status >= 0x180) { 124 if (status >= 0x180) {
125 bb_error_msg("%s: terminated by signal %d", 125 bb_error_msg("'%s' terminated by signal %d",
126 G.args[0], status - 0x180); 126 G.args[0], status - 0x180);
127 return 125; 127 return 125;
128 } 128 }
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c
index 292ff88dd..d77e6bacf 100644
--- a/miscutils/i2c_tools.c
+++ b/miscutils/i2c_tools.c
@@ -358,7 +358,7 @@ static void check_read_funcs(int fd, int mode, int data_addr, int pec)
358 break; 358 break;
359#endif /* ENABLE_I2CDUMP */ 359#endif /* ENABLE_I2CDUMP */
360 default: 360 default:
361 bb_error_msg_and_die("Programmer goofed!"); 361 bb_error_msg_and_die("internal error");
362 } 362 }
363 check_funcs_test_end(funcs, pec, err); 363 check_funcs_test_end(funcs, pec, err);
364} 364}
@@ -1022,33 +1022,33 @@ static const struct i2c_func i2c_funcs_tab[] = {
1022 { .value = I2C_FUNC_I2C, 1022 { .value = I2C_FUNC_I2C,
1023 .name = "I2C" }, 1023 .name = "I2C" },
1024 { .value = I2C_FUNC_SMBUS_QUICK, 1024 { .value = I2C_FUNC_SMBUS_QUICK,
1025 .name = "SMBus Quick Command" }, 1025 .name = "SMBus quick command" },
1026 { .value = I2C_FUNC_SMBUS_WRITE_BYTE, 1026 { .value = I2C_FUNC_SMBUS_WRITE_BYTE,
1027 .name = "SMBus Send Byte" }, 1027 .name = "SMBus send byte" },
1028 { .value = I2C_FUNC_SMBUS_READ_BYTE, 1028 { .value = I2C_FUNC_SMBUS_READ_BYTE,
1029 .name = "SMBus Receive Byte" }, 1029 .name = "SMBus receive byte" },
1030 { .value = I2C_FUNC_SMBUS_WRITE_BYTE_DATA, 1030 { .value = I2C_FUNC_SMBUS_WRITE_BYTE_DATA,
1031 .name = "SMBus Write Byte" }, 1031 .name = "SMBus write byte" },
1032 { .value = I2C_FUNC_SMBUS_READ_BYTE_DATA, 1032 { .value = I2C_FUNC_SMBUS_READ_BYTE_DATA,
1033 .name = "SMBus Read Byte" }, 1033 .name = "SMBus read byte" },
1034 { .value = I2C_FUNC_SMBUS_WRITE_WORD_DATA, 1034 { .value = I2C_FUNC_SMBUS_WRITE_WORD_DATA,
1035 .name = "SMBus Write Word" }, 1035 .name = "SMBus write word" },
1036 { .value = I2C_FUNC_SMBUS_READ_WORD_DATA, 1036 { .value = I2C_FUNC_SMBUS_READ_WORD_DATA,
1037 .name = "SMBus Read Word" }, 1037 .name = "SMBus read word" },
1038 { .value = I2C_FUNC_SMBUS_PROC_CALL, 1038 { .value = I2C_FUNC_SMBUS_PROC_CALL,
1039 .name = "SMBus Process Call" }, 1039 .name = "SMBus process call" },
1040 { .value = I2C_FUNC_SMBUS_WRITE_BLOCK_DATA, 1040 { .value = I2C_FUNC_SMBUS_WRITE_BLOCK_DATA,
1041 .name = "SMBus Block Write" }, 1041 .name = "SMBus block write" },
1042 { .value = I2C_FUNC_SMBUS_READ_BLOCK_DATA, 1042 { .value = I2C_FUNC_SMBUS_READ_BLOCK_DATA,
1043 .name = "SMBus Block Read" }, 1043 .name = "SMBus block read" },
1044 { .value = I2C_FUNC_SMBUS_BLOCK_PROC_CALL, 1044 { .value = I2C_FUNC_SMBUS_BLOCK_PROC_CALL,
1045 .name = "SMBus Block Process Call" }, 1045 .name = "SMBus block process call" },
1046 { .value = I2C_FUNC_SMBUS_PEC, 1046 { .value = I2C_FUNC_SMBUS_PEC,
1047 .name = "SMBus PEC" }, 1047 .name = "SMBus PEC" },
1048 { .value = I2C_FUNC_SMBUS_WRITE_I2C_BLOCK, 1048 { .value = I2C_FUNC_SMBUS_WRITE_I2C_BLOCK,
1049 .name = "I2C Block Write" }, 1049 .name = "I2C block write" },
1050 { .value = I2C_FUNC_SMBUS_READ_I2C_BLOCK, 1050 { .value = I2C_FUNC_SMBUS_READ_I2C_BLOCK,
1051 .name = "I2C Block Read" }, 1051 .name = "I2C block read" },
1052 { .value = 0, .name = NULL } 1052 { .value = 0, .name = NULL }
1053}; 1053};
1054 1054
@@ -1251,17 +1251,17 @@ int i2cdetect_main(int argc UNUSED_PARAM, char **argv)
1251 no_support("detection commands"); 1251 no_support("detection commands");
1252 } else 1252 } else
1253 if (mode == I2CDETECT_MODE_QUICK && !(funcs & I2C_FUNC_SMBUS_QUICK)) { 1253 if (mode == I2CDETECT_MODE_QUICK && !(funcs & I2C_FUNC_SMBUS_QUICK)) {
1254 no_support("SMBus Quick Write command"); 1254 no_support("SMBus quick write");
1255 } else 1255 } else
1256 if (mode == I2CDETECT_MODE_READ && !(funcs & I2C_FUNC_SMBUS_READ_BYTE)) { 1256 if (mode == I2CDETECT_MODE_READ && !(funcs & I2C_FUNC_SMBUS_READ_BYTE)) {
1257 no_support("SMBus Receive Byte command"); 1257 no_support("SMBus receive byte");
1258 } 1258 }
1259 1259
1260 if (mode == I2CDETECT_MODE_AUTO) { 1260 if (mode == I2CDETECT_MODE_AUTO) {
1261 if (!(funcs & I2C_FUNC_SMBUS_QUICK)) 1261 if (!(funcs & I2C_FUNC_SMBUS_QUICK))
1262 will_skip("SMBus Quick Write"); 1262 will_skip("SMBus quick write");
1263 if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE)) 1263 if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE))
1264 will_skip("SMBus Receive Byte"); 1264 will_skip("SMBus receive byte");
1265 } 1265 }
1266 1266
1267 if (!(opts & opt_y)) 1267 if (!(opts & opt_y))
diff --git a/networking/httpd.c b/networking/httpd.c
index feaaa94d5..00169c36d 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1222,12 +1222,12 @@ static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post
1222 out_cnt += count; 1222 out_cnt += count;
1223 count = 0; 1223 count = 0;
1224 /* "Status" header format is: "Status: 302 Redirected\r\n" */ 1224 /* "Status" header format is: "Status: 302 Redirected\r\n" */
1225 if (out_cnt >= 8 && memcmp(rbuf, "Status: ", 8) == 0) { 1225 if (out_cnt >= 7 && memcmp(rbuf, "Status:", 7) == 0) {
1226 /* send "HTTP/1.0 " */ 1226 /* send "HTTP/1.0 " */
1227 if (full_write(STDOUT_FILENO, HTTP_200, 9) != 9) 1227 if (full_write(STDOUT_FILENO, HTTP_200, 9) != 9)
1228 break; 1228 break;
1229 rbuf += 8; /* skip "Status: " */ 1229 rbuf += 7; /* skip "Status:" */
1230 count = out_cnt - 8; 1230 count = out_cnt - 7;
1231 out_cnt = -1; /* buffering off */ 1231 out_cnt = -1; /* buffering off */
1232 } else if (out_cnt >= 4) { 1232 } else if (out_cnt >= 4) {
1233 /* Did CGI add "HTTP"? */ 1233 /* Did CGI add "HTTP"? */
diff --git a/networking/ifenslave.c b/networking/ifenslave.c
index c3be8180b..6b234adee 100644
--- a/networking/ifenslave.c
+++ b/networking/ifenslave.c
@@ -577,8 +577,8 @@ int ifenslave_main(int argc UNUSED_PARAM, char **argv)
577 /* Can't work with this slave, */ 577 /* Can't work with this slave, */
578 /* remember the error and skip it */ 578 /* remember the error and skip it */
579 bb_perror_msg( 579 bb_perror_msg(
580 "skipping %s: can't get flags", 580 "skipping %s: can't get %s",
581 slave_ifname); 581 slave_ifname, "flags");
582 res = rv; 582 res = rv;
583 continue; 583 continue;
584 } 584 }
@@ -595,8 +595,8 @@ int ifenslave_main(int argc UNUSED_PARAM, char **argv)
595 /* Can't work with this slave, */ 595 /* Can't work with this slave, */
596 /* remember the error and skip it */ 596 /* remember the error and skip it */
597 bb_perror_msg( 597 bb_perror_msg(
598 "skipping %s: can't get settings", 598 "skipping %s: can't get %s",
599 slave_ifname); 599 slave_ifname, "settings");
600 res = rv; 600 res = rv;
601 continue; 601 continue;
602 } 602 }
diff --git a/procps/powertop.c b/procps/powertop.c
index 18418100f..ce85f4191 100644
--- a/procps/powertop.c
+++ b/procps/powertop.c
@@ -591,7 +591,7 @@ static NOINLINE void print_intel_cstates(void)
591 if (!edx || !(ecx & 1)) 591 if (!edx || !(ecx & 1))
592 return; 592 return;
593 593
594 printf("Your CPU supports the following C-states: "); 594 printf("Your %s the following C-states: ", "CPU supports");
595 i = 0; 595 i = 0;
596 while (edx) { 596 while (edx) {
597 if (edx & 7) 597 if (edx & 7)
@@ -602,7 +602,7 @@ static NOINLINE void print_intel_cstates(void)
602 bb_putchar('\n'); 602 bb_putchar('\n');
603 603
604 /* Print BIOS C-States */ 604 /* Print BIOS C-States */
605 printf("Your BIOS reports the following C-states: "); 605 printf("Your %s the following C-states: ", "BIOS reports");
606 for (i = 0; i < ARRAY_SIZE(bios_table); i++) 606 for (i = 0; i < ARRAY_SIZE(bios_table); i++)
607 if (bios_table[i]) 607 if (bios_table[i])
608 printf("C%u ", i); 608 printf("C%u ", i);
diff --git a/runit/runsv.c b/runit/runsv.c
index d941e897d..94d286059 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -114,7 +114,7 @@ struct globals {
114 114
115static void fatal2_cannot(const char *m1, const char *m2) 115static void fatal2_cannot(const char *m1, const char *m2)
116{ 116{
117 bb_perror_msg_and_die("%s: fatal: cannot %s%s", dir, m1, m2); 117 bb_perror_msg_and_die("%s: fatal: can't %s%s", dir, m1, m2);
118 /* was exiting 111 */ 118 /* was exiting 111 */
119} 119}
120static void fatal_cannot(const char *m) 120static void fatal_cannot(const char *m)
@@ -124,7 +124,7 @@ static void fatal_cannot(const char *m)
124} 124}
125static void fatal2x_cannot(const char *m1, const char *m2) 125static void fatal2x_cannot(const char *m1, const char *m2)
126{ 126{
127 bb_error_msg_and_die("%s: fatal: cannot %s%s", dir, m1, m2); 127 bb_error_msg_and_die("%s: fatal: can't %s%s", dir, m1, m2);
128 /* was exiting 111 */ 128 /* was exiting 111 */
129} 129}
130static void warn_cannot(const char *m) 130static void warn_cannot(const char *m)
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index d65a5161c..88d797584 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -576,11 +576,11 @@ static void setup_tables(void)
576 for (i = MINIX_ROOT_INO; i <= SB_INODES; i++) 576 for (i = MINIX_ROOT_INO; i <= SB_INODES; i++)
577 unmark_inode(i); 577 unmark_inode(i);
578 G.inode_buffer = xzalloc(INODE_BUFFER_SIZE); 578 G.inode_buffer = xzalloc(INODE_BUFFER_SIZE);
579 printf("%ld inodes\n", (long)SB_INODES); 579 printf("%lu inodes\n", (unsigned long)SB_INODES);
580 printf("%ld blocks\n", (long)SB_ZONES); 580 printf("%lu blocks\n", (unsigned long)SB_ZONES);
581 printf("Firstdatazone=%ld (%ld)\n", (long)SB_FIRSTZONE, (long)norm_firstzone); 581 printf("Firstdatazone=%lu (%lu)\n", (unsigned long)SB_FIRSTZONE, (unsigned long)norm_firstzone);
582 printf("Zonesize=%d\n", BLOCK_SIZE << SB_ZONE_SIZE); 582 printf("Zonesize=%u\n", BLOCK_SIZE << SB_ZONE_SIZE);
583 printf("Maxsize=%ld\n", (long)SB_MAXSIZE); 583 printf("Maxsize=%lu\n", (unsigned long)SB_MAXSIZE);
584} 584}
585 585
586int mkfs_minix_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 586int mkfs_minix_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;