usb: logs: Rename USB_INF to LOG_INF
Since logger is now suitable for our logs use it directly. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
17f7abd3dc
commit
f22060cdbe
7 changed files with 15 additions and 16 deletions
|
@ -283,12 +283,12 @@ int usb_dc_ep_check_cap(const struct usb_dc_ep_cfg_data * const cfg)
|
|||
|
||||
if (ep_idx & BIT(0)) {
|
||||
if (EP_ADDR2DIR(cfg->ep_addr) != USB_EP_DIR_IN) {
|
||||
USB_INF("pre-selected as IN endpoint");
|
||||
LOG_INF("pre-selected as IN endpoint");
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
if (EP_ADDR2DIR(cfg->ep_addr) != USB_EP_DIR_OUT) {
|
||||
USB_INF("pre-selected as OUT endpoint");
|
||||
LOG_INF("pre-selected as OUT endpoint");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
@ -340,9 +340,9 @@ int usb_dc_ep_configure(const struct usb_dc_ep_cfg_data * const cfg)
|
|||
}
|
||||
|
||||
bdt[idx_even].buf_addr = (u32_t)block->data;
|
||||
USB_INF("idx_even %x", (u32_t)block->data);
|
||||
LOG_INF("idx_even %x", (u32_t)block->data);
|
||||
bdt[idx_odd].buf_addr = (u32_t)((u8_t *)block->data + cfg->ep_mps);
|
||||
USB_INF("idx_odd %x", (u32_t)((u8_t *)block->data + cfg->ep_mps));
|
||||
LOG_INF("idx_odd %x", (u32_t)((u8_t *)block->data + cfg->ep_mps));
|
||||
|
||||
if (cfg->ep_addr & USB_EP_DIR_IN) {
|
||||
dev_data.ep_ctrl[ep_idx].mps_in = cfg->ep_mps;
|
||||
|
@ -518,7 +518,7 @@ int usb_dc_ep_enable(const u8_t ep)
|
|||
dev_data.ep_ctrl[ep_idx].status.in_enabled = true;
|
||||
}
|
||||
|
||||
USB_INF("ep 0x%x, ep_idx %d", ep, ep_idx);
|
||||
LOG_INF("ep 0x%x, ep_idx %d", ep, ep_idx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -534,7 +534,7 @@ int usb_dc_ep_disable(const u8_t ep)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
USB_INF("ep %x, idx %d", ep_idx, ep);
|
||||
LOG_INF("ep %x, idx %d", ep_idx, ep);
|
||||
|
||||
bdt[idx_even].bd_fields = 0;
|
||||
bdt[idx_odd].bd_fields = 0;
|
||||
|
|
|
@ -45,7 +45,6 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#define USB_WRN(fmt, ...) LOG_WRN(fmt, ##__VA_ARGS__)
|
||||
#define USB_INF(fmt, ...) LOG_INF(fmt, ##__VA_ARGS__)
|
||||
|
||||
/*
|
||||
* These macros should be used to place the USB descriptors
|
||||
|
|
|
@ -264,14 +264,14 @@ static int set_pan_id(void *data, int len)
|
|||
|
||||
static int start(void)
|
||||
{
|
||||
USB_INF("Start IEEE 802.15.4 device");
|
||||
LOG_INF("Start IEEE 802.15.4 device");
|
||||
|
||||
return radio_api->start(ieee802154_dev);
|
||||
}
|
||||
|
||||
static int stop(void)
|
||||
{
|
||||
USB_INF("Stop IEEE 802.15.4 device");
|
||||
LOG_INF("Stop IEEE 802.15.4 device");
|
||||
|
||||
return radio_api->stop(ieee802154_dev);
|
||||
}
|
||||
|
@ -498,7 +498,7 @@ void main(void)
|
|||
{
|
||||
wpanusb_start(&__dev);
|
||||
|
||||
USB_INF("Start");
|
||||
LOG_INF("Start");
|
||||
|
||||
ieee802154_dev = device_get_binding(CONFIG_NET_CONFIG_IEEE802154_DEV_NAME);
|
||||
if (!ieee802154_dev) {
|
||||
|
|
|
@ -918,9 +918,9 @@ static int mass_storage_init(struct device *dev)
|
|||
}
|
||||
|
||||
|
||||
USB_INF("Sect Count %d", block_count);
|
||||
LOG_INF("Sect Count %d", block_count);
|
||||
memory_size = block_count * BLOCK_SIZE;
|
||||
USB_INF("Memory Size %d", memory_size);
|
||||
LOG_INF("Memory Size %d", memory_size);
|
||||
|
||||
msd_state_machine_reset();
|
||||
msd_init();
|
||||
|
|
|
@ -1032,7 +1032,7 @@ static int rndis_class_handler(struct usb_setup_packet *setup, s32_t *len,
|
|||
|
||||
static void cmd_thread(void)
|
||||
{
|
||||
USB_INF("Command thread started");
|
||||
LOG_INF("Command thread started");
|
||||
|
||||
while (true) {
|
||||
struct net_buf *buf;
|
||||
|
|
|
@ -218,7 +218,7 @@ static void netusb_init(struct net_if *iface)
|
|||
}
|
||||
#endif /* CONFIG_USB_COMPOSITE_DEVICE */
|
||||
|
||||
USB_INF("netusb initialized");
|
||||
LOG_INF("netusb initialized");
|
||||
}
|
||||
|
||||
static const struct ethernet_api netusb_api_funcs = {
|
||||
|
|
|
@ -751,7 +751,7 @@ static bool usb_handle_std_endpoint_req(struct usb_setup_packet *setup,
|
|||
case REQ_CLEAR_FEATURE:
|
||||
if (setup->wValue == FEA_ENDPOINT_HALT) {
|
||||
/* clear HALT by unstalling */
|
||||
USB_INF("... EP clear halt %x", ep);
|
||||
LOG_INF("... EP clear halt %x", ep);
|
||||
usb_dc_ep_clear_stall(ep);
|
||||
if (usb_dev.status_callback) {
|
||||
usb_dev.status_callback(USB_DC_CLEAR_HALT, &ep);
|
||||
|
@ -764,7 +764,7 @@ static bool usb_handle_std_endpoint_req(struct usb_setup_packet *setup,
|
|||
case REQ_SET_FEATURE:
|
||||
if (setup->wValue == FEA_ENDPOINT_HALT) {
|
||||
/* set HALT by stalling */
|
||||
USB_INF("--- EP SET halt %x", ep);
|
||||
LOG_INF("--- EP SET halt %x", ep);
|
||||
usb_dc_ep_set_stall(ep);
|
||||
if (usb_dev.status_callback) {
|
||||
usb_dev.status_callback(USB_DC_SET_HALT, &ep);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue