Re: [PATCH 5/5] block: switch ldm partition code to use pr_xxx() functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/15/23 19:06, Johannes Thumshirn wrote:
> On 08.08.23 19:56, Damien Le Moal wrote:
>> +#define ldm_debug(f, a...) pr_debug("%s(): " f, __func__, ##a) +#define 
>> ldm_crit(f, a...) pr_crit("%s(): " f, __func__, ##a) +#define 
>> ldm_error(f, a...) pr_err("%s(): " f, __func__, ##a) +#define 
>> ldm_info(f, a...) pr_info("%s(): " f, __func__, ##a)
> 
> Is there any value in keeping these ldm_XXX() macros around, other than 
> printing the function name?

You named it: I didn't want to change the messages.
I do not mind simplifying these by removing the function name, but if we do not,
then the macros actually simplify the print calls.

> 
> I'd just get rid of them as well and replace with the according pr_XXX() 
> calls.

-- 
Damien Le Moal
Western Digital Research




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux