Re: [PATCH] scsi: ufs: ufsfbo: Introduce File Based Optimization feature

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

 



On 8/24/22 01:46, Jiaming Li wrote:
+#include "../../../block/blk.h"

Without having taken a look at the rest of this patch, including a block driver private header file in the UFS driver is unacceptable.

+#define FBO_INFO_MSG(fbo, msg, args...)	do { \
+		if (fbo->fbo_debug) \
+			pr_info("[info]%s:%d:" msg "\n", __func__, __LINE__, ##args); \
+	} while (0)

Please use pr_debug() instead.

+#define FBO_ERR_MSG(msg, args...) \
+	pr_err("[err]%s:%d:" msg "\n", __func__, __LINE__, ##args)

Please use pr_err() directly and remove the function name and line numbers from error messages.

+#define FBO_WARN_MSG(msg, args...) \
+	pr_warn("[warn]%s:%d:" msg "\n", __func__, __LINE__, ##args)

Please use pr_warn directly and remove function name and line numbers from warning messages.

Thanks,

Bart.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux