Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2017 10:33:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 221853] sysctl_(add|register)_oid(): Prefix log messages with the function name
Message-ID:  <bug-221853-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221853

            Bug ID: 221853
           Summary: sysctl_(add|register)_oid(): Prefix log messages with
                    the function name
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: fk@fabiankeil.de
             Flags: mfc-stable11?

Created attachment 185809
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185809&action=
=3Dedit
sysctl_(add|register)_oid(): Prefix log message with the function name

The attached patch prefixes the "can't re-use a leaf ..." messages
emitted by sysctl_add_oid() and sysctl_register_oid() with the
name of the function.

This makes it more obvious that the messages are sysctl related
and which of the two functions emitted them.

Without the patch the messages look like:

kernel: can't re-use a leaf (delete_max)!
kernel: can't re-use a leaf (minimum_cmd_size)!
kernel: can't re-use a leaf (zone_mode)!
kernel: can't re-use a leaf (zone_support)!
kernel: can't re-use a leaf (optimal_seq_zones)!

Obtained from: ElectroBSD

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221853-8>