Clarify which hints file is the source of an error message.

PR:		246688
Submitted by:	Ashish Gupta <lrx337@gmail.com>
MFC after:	1 week
This commit is contained in:
Peter Wemm 2020-06-01 03:37:58 +00:00
parent 176d12b518
commit 694f3fc81c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361685

View File

@ -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;