aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 32e9d8ffceef..dbe1fb5e8cc0 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1136,10 +1136,10 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
1136 if (!sec_mismatch_verbose) 1136 if (!sec_mismatch_verbose)
1137 return; 1137 return;
1138 1138
1139 fprintf(stderr, "WARNING: %s(%s+0x%llx): Section mismatch in" 1139 warn("%s(%s+0x%llx): Section mismatch in reference from the %s %s%s "
1140 " reference from the %s %s%s to the %s %s:%s%s\n", 1140 "to the %s %s:%s%s\n",
1141 modname, fromsec, fromaddr, from, fromsym, from_p, 1141 modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec,
1142 to, tosec, tosym, to_p); 1142 tosym, to_p);
1143 1143
1144 switch (mismatch) { 1144 switch (mismatch) {
1145 case TEXT_TO_INIT: 1145 case TEXT_TO_INIT:
@@ -1945,10 +1945,10 @@ int main(int argc, char **argv)
1945 if (dump_write) 1945 if (dump_write)
1946 write_dump(dump_write); 1946 write_dump(dump_write);
1947 if (sec_mismatch_count && !sec_mismatch_verbose) 1947 if (sec_mismatch_count && !sec_mismatch_verbose)
1948 fprintf(stderr, "modpost: Found %d section mismatch(es).\n" 1948 warn("modpost: Found %d section mismatch(es).\n"
1949 "To see full details build your kernel with:\n" 1949 "To see full details build your kernel with:\n"
1950 "'make CONFIG_DEBUG_SECTION_MISMATCH=y'\n", 1950 "'make CONFIG_DEBUG_SECTION_MISMATCH=y'\n",
1951 sec_mismatch_count); 1951 sec_mismatch_count);
1952 1952
1953 return err; 1953 return err;
1954} 1954}