Added macro logprintf

This commit is contained in:
Nick Hibma 1999-04-07 17:07:07 +00:00
parent fcae3aa61f
commit 7ae8132edd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45435

View File

@ -111,6 +111,7 @@ __CONCAT(dname,_attach)(parent, self, aux) \
#define USB_DO_ATTACH(dev, bdev, parent, args, print, sub) \
((dev)->softc = config_found_sm(parent, args, print, sub))
#define logprintf printf
@ -210,6 +211,9 @@ __CONCAT(dname,_attach)(device_t self)
#define SIMPLEQ_INIT STAILQ_INIT
#define SIMPLEQ_ENTRY STAILQ_ENTRY
#include <sys/syslog.h>
#define logprintf(args...) log(LOG_DEBUG, args);
#endif /* __FreeBSD__ */