aboutsummaryrefslogtreecommitdiff
path: root/modutils/insmod.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-12 08:52:02 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-12 08:52:02 +0000
commit15611bb95815de14bcb35f66bd10089a322ea30b (patch)
tree818f4e4a208cc04e37f2ea12fd4bda4eae30dd4c /modutils/insmod.c
parent16d58d75ee11f3b50550fbef7da12a4adbab66d4 (diff)
downloadbusybox-w32-15611bb95815de14bcb35f66bd10089a322ea30b.tar.gz
busybox-w32-15611bb95815de14bcb35f66bd10089a322ea30b.tar.bz2
busybox-w32-15611bb95815de14bcb35f66bd10089a322ea30b.zip
A few more string duplicates found & eliminated
# size busybox_old busybox_unstripped text data bss dec hex filename 679693 2700 15632 698025 aa6a9 busybox_old 679523 2700 15632 697855 aa5ff busybox_unstripped
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r--modutils/insmod.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index c84e2b96c..a81ca7fba 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -4112,18 +4112,13 @@ int insmod_main( int argc, char **argv)
4112 } 4112 }
4113 4113
4114 if (strncmp(uts_info.release, m_strversion, STRVERSIONLEN) != 0) { 4114 if (strncmp(uts_info.release, m_strversion, STRVERSIONLEN) != 0) {
4115 if (flag_force_load) { 4115 bb_error_msg("%skernel-module version mismatch\n"
4116 bb_error_msg("warning: kernel-module version mismatch\n" 4116 "\t%s was compiled for kernel version %s\n"
4117 "\t%s was compiled for kernel version %s\n" 4117 "\twhile this kernel is version %s",
4118 "\twhile this kernel is version %s", 4118 flag_force_load ? "warning: " : "",
4119 m_filename, m_strversion, uts_info.release); 4119 m_filename, m_strversion, uts_info.release);
4120 } else { 4120 if (!flag_force_load)
4121 bb_error_msg("kernel-module version mismatch\n"
4122 "\t%s was compiled for kernel version %s\n"
4123 "\twhile this kernel is version %s.",
4124 m_filename, m_strversion, uts_info.release);
4125 goto out; 4121 goto out;
4126 }
4127 } 4122 }
4128 } 4123 }
4129 k_crcs = 0; 4124 k_crcs = 0;