Hide debug messages under VT_DEBUG.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
02e843636a
commit
16aa1f0950
@ -78,7 +78,13 @@ one 'device sc' or 'device vt'"
|
||||
#endif /* defined(SC_TWOBUTTON_MOUSE) || defined(VT_TWOBUTTON_MOUSE) */
|
||||
|
||||
#define SC_DRIVER_NAME "vt"
|
||||
#ifdef VT_DEBUG
|
||||
#define DPRINTF(_l, ...) if (vt_debug > (_l)) printf( __VA_ARGS__ )
|
||||
#define VT_CONSOLECTL_DEBUG
|
||||
#define VT_SYSMOUSE_DEBUG
|
||||
#else
|
||||
#define DPRINTF(_l, ...) do {} while (0)
|
||||
#endif
|
||||
#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
|
||||
|
||||
#define VT_SYSCTL_INT(_name, _default, _descr) \
|
||||
|
@ -61,8 +61,10 @@ consolectl_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag,
|
||||
return (0);
|
||||
}
|
||||
default:
|
||||
#ifdef VT_CONSOLECTL_DEBUG
|
||||
printf("consolectl: unknown ioctl: %c:%lx\n",
|
||||
(char)IOCGROUP(cmd), IOCBASECMD(cmd));
|
||||
#endif
|
||||
return (ENOIOCTL);
|
||||
}
|
||||
}
|
||||
|
@ -376,8 +376,10 @@ sysmouse_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag,
|
||||
case MOUSE_MOUSECHAR:
|
||||
return (0);
|
||||
default:
|
||||
#ifdef VT_SYSMOUSE_DEBUG
|
||||
printf("sysmouse: unknown ioctl: %c:%lx\n",
|
||||
(char)IOCGROUP(cmd), IOCBASECMD(cmd));
|
||||
#endif
|
||||
return (ENOIOCTL);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user