After doing the 14.2 upgrade, /var/log/messages spammed by hidmap_intr

Subject says most of the concern: I have tons of debugging data from hidmap.

Code:
Datestamp host kernel: hms0: hidmap_intr: hm=0x... len=
Datestamp host kernel: hms0: hidmap_intr: data= ...

I took a look at the source and chased things over to hidmap.c where I can see that the logging function is `DPRINTFN` which should only be defined as no-op when HID_DEBUG is defined.

I wouldn't expect that to be set in a release build.

On top of that, the code suggests if
Code:
(hm)->debug_var != NULL
or
Code:
(hm)->debug_var > n-log-level

As far as I know, I don't have those set. I checked my sysctl and
Code:
hw.hid.debug
is 0. And I don't see any references to a hid inside of sysctl.conf.

At this point, I think I've followed a decent path in terms of trying to debug this, but I'm not sure what to do next short of try to build 15-CURRENT in a way that I can debug why the DPRINTFN is actually logging. I checked the 14.2 release notes and didn't see anything; I'm still knew to FreeBSD culture so maybe I looked in the wrong spot, though. My goals would be:

1. Stop the logging (per the above, it seems like that shouldn't be happening, no?)
2. If not possible, update syslog to make these go away.

Thanks for any help!
 
Hi sgharms,

I am wondering if you have checked loader.conf for any hid entries? /boot/loader.conf

HID or Human Interface Devices usually have entries in this configuration file, such as usbhid_load="YES" or hsctrl_load="YES"

try checking this file and also /boot/load.conf for any hid entries.

Someone will eventually come along and help you out ...

Have a nice day,
John
 
John,

Thanks for the reply. To my surprise, I found that my last snapshot before the upgrade didn't have an HID debug line that was there afterward.

Code:
--- /.zfs/snapshot/2025-03-20/boot/loader.conf    2025-03-19 11:24:09.231061000 -0400
+++ /boot/loader.conf    2025-04-27 10:07:09.331054000 -0400
@@ -2,5 +2,13 @@
 kern.geom.label.gptid.enable="0"
 cryptodev_load="YES"
 zfs_load="YES"
-beastie_disable="YES"
-boot_mute="YES"
+# Overlay for kernel bootstrapping
+# boot_mute="YES"
+# No beastie icon on boot menu
+loader_logo="none"
+# Boot quickly
+autoboot_delay=3
+
+# Who added this!? I don't think it was me!
+# dev.hms.0.debug=90
 
sgharms,

it is associated with a mouse driver, or so it seems, so i wonder did you change anything with your mouse before the upgrade? I can only find the following information about this entry in loader.conf


Obviously, debug is greater than 0, so it indicates a problem with the driver. as to how the entry got there, i do not know. Someone else will have to help you with that info. I am also new to FreeBSD.
 
Back
Top