Re: [PATCH v2] checkpatch: support more uppercase $logFunctions
From: Joe Perches
Date: Thu Mar 19 2015 - 11:03:16 EST
On Thu, 2015-03-19 at 10:57 +0100, Tom Van Braeckel wrote:
> >> unfixable checkpatch warnings (an example: drivers/bluetooth/btusb.c)
> >
> > I think BT_DBG is a poor macro as it's just
> >
> > #define BT_DBG(fmt, ...) pr_debug(fmt "\n", ##__VA_ARGS__)
> >
> > and I'd rather see a treewide sed for that to pr_debug
>
> Indeed, I also think that BT_DBG() is a poor macro and that it should
> be fixed tree-wide. I might even do it myself, in a separate patch.
>
> The reason for DBG being in the current patch is to match other *_DBG()
> log functions that make more sense, such as NS_DBG().
>
> As for the btusb.c example case, this patch allows us to fix the
> "quoted string split across lines" warning caused by the BT_INFO()
> macro. The fix will be to not to split the quoted string, which will
> be allowed when BT_INFO() is recognized as a log function.
The list of in-tree things this matches is long
and far too many are not logging functions
ABIT_UGURU_DEBUG
ACPI_BIOS_WARNING
ACPI_INFO
ACPI_WARNING
ADMA_LL_DBG
AFUD_READ_INFO
ALLOW_DEBUG
ALX_ISR_ALERT
AML_UART_ERR
APPTAG_ERR
ASC_DBG
ATA_ERR
AT_DMA_ERR
ATH_DBG_WARN
AUX_DBG
AUX_ERR
AX_SPR_ERR
BLOCK_PRTY_INFO
BMAC_HOST_INFO
BOND_AD_INFO
BOND_ALB_INFO
BT_DBG
BT_ERR
BT_INFO
CACHE_OP_ERR
CANINTF_ERR
CAUSE_DEBUG
CH_ALERT
CH_DBG
CH_ERR
CHNL_STS_ERR
CH_WARN
CISR_PAR_ERR
CL_LOCK_DEBUG
CLOCK_INFO
CL_PAGE_DEBUG
CMD_ERR
COH_DBG
CPIA_MODULE_DEBUG
CPSW_DEBUG
CSW_PARITY_ERR
CTCM_PR_DEBUG
DAT_ERR
DAVINCI_EMAC_DEBUG
DBG_EMERG
DBG_ERR
DEBUG_ERR
DEF_INT_ERR
DEV_DBG
DEV_ERR
D_INFO
DMM_PATSTATUS_ERR
DRM_DEBUG
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MSC_WARN
SN_PCIDEV_INFO
SORT_CRIT
SPDIF_ERR
SPI_ERR
SR_CRIT
SR_TX_ERR
SSIF_DEFAULT_DEBUG
STK_INFO
STK_WARNING
STS_ERR
SYS_CFGSTAT_ERR
TCAM_ERR
TDMC_INTR_DBG
THERMAL_ALERT
TLAN_DBG
TTM_DEBUG
TXC_DEBUG
TX_CS_DBG
TX_DESC_INFO
TX_INFO
TX_STA_ERR
UDC_DEBUG
UDC_ISO_ERR
ULPI_INFO
ULTRASTOR_DEBUG
URB_DBG
URXD_ERR
USB_DEVICE_INFO
USB_INTERFACE_INFO
USB_STS_ERR
US_DEBUG
UVC_STREAM_ERR
UW_ERR
V_CQ_ERR
VELOCITY_DBG
VMON_OV_WARNING
VMON_UV_WARNING
VREG_INFO
V_UNMAPPED_ERR
WUSBINTR_HOST_ERR
WUSBSTS_HOST_ERR
XENBUS_EXIST_ERR
XE_PARITY_ERR
XMAC_HOST_INFO
ZAURUS_PXA_INFO
ZAURUS_STRONGARM_INFO
ZMII_DBG
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/