We don't need to INCLUDENUL, so turn it off to avoid assertion...
sbuf_new_for_sysctl turns on INCLUDENUL, but we don't need it. And we assert for it in the new bus_pnpinfo_sb and bus_location_sb strings.
This commit is contained in:
parent
b46b3ba72c
commit
f6c941f347
@ -265,6 +265,7 @@ device_sysctl_handler(SYSCTL_HANDLER_ARGS)
|
||||
int error;
|
||||
|
||||
sbuf_new_for_sysctl(&sb, NULL, 1024, req);
|
||||
sbuf_clear_flags(&sb, SBUF_INCLUDENUL);
|
||||
switch (arg2) {
|
||||
case DEVICE_SYSCTL_DESC:
|
||||
sbuf_cat(&sb, dev->desc ? dev->desc : "");
|
||||
|
Loading…
Reference in New Issue
Block a user