Skip to content

Commit fa89f96

Browse files
committed
power: rk817: add pr_fmt() macro
Make the printks look a bit nicer by adding a prefix. Change-Id: Id268a55a1681c6805e7c3f5929350891e92df816 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
1 parent cbac12b commit fa89f96

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/power/rk817_battery.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*
1616
*/
1717

18+
#define pr_fmt(fmt) "rk817-bat: " fmt
19+
1820
#include <linux/delay.h>
1921
#include <linux/extcon.h>
2022
#include <linux/fb.h>
@@ -48,7 +50,7 @@ module_param_named(dbg_level, dbg_enable, int, 0644);
4850
} \
4951
} while (0)
5052

51-
#define BAT_INFO(fmt, args...) pr_info("rk817-bat: "fmt, ##args)
53+
#define BAT_INFO(fmt, args...) pr_info(fmt, ##args)
5254

5355
#define DRIVER_VERSION "1.00"
5456
#define SFT_SET_KB 1

0 commit comments

Comments
 (0)