From 694f3fc81c43969075ac28c0555ebc88083e7127 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 1 Jun 2020 03:37:58 +0000 Subject: [PATCH] Clarify which hints file is the source of an error message. PR: 246688 Submitted by: Ashish Gupta MFC after: 1 week --- sys/kern/kern_linker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 0a52247f5fa9..e6d36e8fc6f3 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -1870,7 +1870,7 @@ linker_hints_lookup(const char *path, int pathlen, const char *modname, * XXX: we need to limit this number to some reasonable value */ if (vattr.va_size > LINKER_HINTS_MAX) { - printf("hints file too large %ld\n", (long)vattr.va_size); + printf("linker.hints file too large %ld\n", (long)vattr.va_size); goto bad; } hints = malloc(vattr.va_size, M_TEMP, M_WAITOK); @@ -1888,7 +1888,7 @@ linker_hints_lookup(const char *path, int pathlen, const char *modname, intp = (int *)hints; ival = *intp++; if (ival != LINKER_HINTS_VERSION) { - printf("hints file version mismatch %d\n", ival); + printf("linker.hints file version mismatch %d\n", ival); goto bad; } bufend = hints + vattr.va_size;