Skip to content
Permalink
Browse files

usb: webusb: Fix logging for webusb

Replace LOG_MODULE_DECLARE with LOG_MODULE_REGISTER and update default
log level.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information...
finikorg authored and carlescufi committed Mar 27, 2019
1 parent 34a2b40 commit bc05efacbfc7ff887e1d7744e99bd15799895513
Showing with 3 additions and 3 deletions.
  1. +1 −1 samples/subsys/usb/webusb/src/main.c
  2. +2 −2 samples/subsys/usb/webusb/src/webusb.c
@@ -13,7 +13,7 @@
* the browser at host.
*/

#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#define LOG_LEVEL CONFIG_USB_DEVICE_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(main);

@@ -12,9 +12,9 @@
* to support the WebUSB.
*/

#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#define LOG_LEVEL CONFIG_USB_DEVICE_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_DECLARE(main);
LOG_MODULE_REGISTER(webusb);

#include <zephyr.h>
#include <init.h>

0 comments on commit bc05efa

Please sign in to comment.
You can’t perform that action at this time.