FreeBSD Bugzilla – Attachment 9348 Details for
Bug 19179
patch to fix display of dev_t's in sysctl(8)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 495 bytes, created by
kbyanc
on 2000-06-10 20:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
kbyanc
Created:
2000-06-10 20:50:01 UTC
Size:
495 bytes
patch
obsolete
>--- sysctl.c.orig Sat Jun 10 12:33:57 2000 >+++ sysctl.c Sat Jun 10 12:37:51 2000 >@@ -270,8 +270,14 @@ > dev_t *d = (dev_t *)p; > if (l2 != sizeof *d) > err(1, "T_dev_T %d != %d", l2, sizeof *d); >- printf("{ major = %d, minor = %d }", >- major(*d), minor(*d)); >+ if ((int)(*d) != -1) { >+ if (minor(*d) > 255 || minor(*d) < 0) >+ printf("{ major = %d, minor = 0x%x }", >+ major(*d), minor(*d)); >+ else >+ printf("{ major = %d, minor = %d }", >+ major(*d), minor(*d)); >+ } > return (0); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19179
: 9348