drivers/: Remove all explicit use of 'hidden' macro _info. Code must never use this directly. Code must always use a debug macro such as info which is basic on _info but can be appropriately filtered.
This commit is contained in:
parent
7fc25c0e7f
commit
08c001196b
@ -403,15 +403,15 @@ static void ads1242_print_regs(FAR struct ads1242_dev_s *dev, char const *msg)
|
|||||||
uint8_t mux_reg_value = 0;
|
uint8_t mux_reg_value = 0;
|
||||||
uint8_t acr_reg_value = 0;
|
uint8_t acr_reg_value = 0;
|
||||||
|
|
||||||
_info("%s\n", msg);
|
ainfo("%s\n", msg);
|
||||||
|
|
||||||
ads1242_read_reg(dev, ADS1242_REG_SETUP, &setup_reg_value);
|
ads1242_read_reg(dev, ADS1242_REG_SETUP, &setup_reg_value);
|
||||||
ads1242_read_reg(dev, ADS1242_REG_MUX, &mux_reg_value);
|
ads1242_read_reg(dev, ADS1242_REG_MUX, &mux_reg_value);
|
||||||
ads1242_read_reg(dev, ADS1242_REG_ACR, &acr_reg_value);
|
ads1242_read_reg(dev, ADS1242_REG_ACR, &acr_reg_value);
|
||||||
|
|
||||||
_info("SETUP %02X\n", setup_reg_value);
|
ainfo("SETUP %02X\n", setup_reg_value);
|
||||||
_info("MUX %02X\n", mux_reg_value);
|
ainfo("MUX %02X\n", mux_reg_value);
|
||||||
_info("ACR %02X\n", acr_reg_value);
|
ainfo("ACR %02X\n", acr_reg_value);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_DEBUG_FEATURES && CONFIG_DEBUG_INFO */
|
#endif /* CONFIG_DEBUG_FEATURES && CONFIG_DEBUG_INFO */
|
||||||
|
|
||||||
|
@ -337,8 +337,8 @@ static inline int sst26_readid(struct sst26_dev_s *priv)
|
|||||||
SPI_SELECT(priv->dev, SPIDEV_FLASH, false);
|
SPI_SELECT(priv->dev, SPIDEV_FLASH, false);
|
||||||
sst26_unlock(priv->dev);
|
sst26_unlock(priv->dev);
|
||||||
|
|
||||||
_info("manufacturer: %02x memory: %02x capacity: %02x\n",
|
sstinfo("manufacturer: %02x memory: %02x capacity: %02x\n",
|
||||||
manufacturer, memory, capacity);
|
manufacturer, memory, capacity);
|
||||||
|
|
||||||
/* Check for a valid manufacturer and memory type */
|
/* Check for a valid manufacturer and memory type */
|
||||||
|
|
||||||
|
@ -1421,7 +1421,7 @@ int uart_register(FAR const char *path, FAR uart_dev_t *dev)
|
|||||||
|
|
||||||
/* Register the serial driver */
|
/* Register the serial driver */
|
||||||
|
|
||||||
_info("Registering %s\n", path);
|
sinfo("Registering %s\n", path);
|
||||||
return register_driver(path, &g_serialops, 0666, dev);
|
return register_driver(path, &g_serialops, 0666, dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -829,7 +829,7 @@ static int u16550_interrupt(int irq, void *context)
|
|||||||
/* Read the modem status register (MSR) to clear */
|
/* Read the modem status register (MSR) to clear */
|
||||||
|
|
||||||
status = u16550_serialin(priv, UART_MSR_OFFSET);
|
status = u16550_serialin(priv, UART_MSR_OFFSET);
|
||||||
_info("MSR: %02x\n", status);
|
sinfo("MSR: %02x\n", status);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -840,7 +840,7 @@ static int u16550_interrupt(int irq, void *context)
|
|||||||
/* Read the line status register (LSR) to clear */
|
/* Read the line status register (LSR) to clear */
|
||||||
|
|
||||||
status = u16550_serialin(priv, UART_LSR_OFFSET);
|
status = u16550_serialin(priv, UART_LSR_OFFSET);
|
||||||
_info("LSR: %02x\n", status);
|
sinfo("LSR: %02x\n", status);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -780,7 +780,7 @@ static int mrf24j40_settxpower(FAR struct ieee802154_dev_s *ieee,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_info("remaining attenuation: %d mBm\n",txpwr);
|
winfo("remaining attenuation: %d mBm\n",txpwr);
|
||||||
|
|
||||||
switch(txpwr/100)
|
switch(txpwr/100)
|
||||||
{
|
{
|
||||||
|
@ -1254,7 +1254,7 @@ int nrf24l01_register(FAR struct spi_dev_s *spi, FAR struct nrf24l01_config_s *c
|
|||||||
|
|
||||||
/* Register the device as an input device */
|
/* Register the device as an input device */
|
||||||
|
|
||||||
iinfo("Registering " DEV_NAME "\n");
|
winfo("Registering " DEV_NAME "\n");
|
||||||
|
|
||||||
result = register_driver(DEV_NAME, &nrf24l01_fops, 0666, dev);
|
result = register_driver(DEV_NAME, &nrf24l01_fops, 0666, dev);
|
||||||
if (result < 0)
|
if (result < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user