Bug 246688 - [PATCH] hints file version mismatch error in dmesg is ambiguous
Summary: [PATCH] hints file version mismatch error in dmesg is ambiguous
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Peter Wemm
Keywords: patch
Depends on:
Reported: 2020-05-24 01:11 UTC by Ashish Gupta
Modified: 2020-06-01 03:43 UTC (History)
1 user (show)

See Also:

Patch for changing error message in dmesg (783 bytes, patch)
2020-05-24 01:11 UTC, Ashish Gupta
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ashish Gupta 2020-05-24 01:11:18 UTC
Created attachment 214799 [details]
Patch for changing error message in dmesg


I've been trying to fix some issues related to loading kernel modules, but the error message in dmesg which said "hints file version mismatch 1979654256" are ambiguous as the system has more than one hints files (device.hints, and linker.hints) while this error is strictly for the linker.hints file.

It took me a while to figure out this was related to the linker.hints file (it should be pretty obvious to a seasoned freebsd user as the linker.hints file is more relevant for loading kernel modules), but I feel that this (small) change should help make the error more accurate.

It changes the error messages to say "linker.hints file version mismatch XXXX" instead.
Comment 1 commit-hook freebsd_committer 2020-06-01 03:38:26 UTC
A commit references this bug:

Author: peter
Date: Mon Jun  1 03:37:59 UTC 2020
New revision: 361685
URL: https://svnweb.freebsd.org/changeset/base/361685

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

  PR:		246688
  Submitted by:	Ashish Gupta <lrx337@gmail.com>
  MFC after:	1 week