Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146151768
D49989.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D49989.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -223,20 +223,22 @@
log(LOG_CRIT, pr_fmt(fmt), ##__VA_ARGS__)
#define pr_err(fmt, ...) \
log(LOG_ERR, pr_fmt(fmt), ##__VA_ARGS__)
-#define pr_err_once(fmt, ...) \
- log_once(LOG_ERR, pr_fmt(fmt), ##__VA_ARGS__)
#define pr_warning(fmt, ...) \
log(LOG_WARNING, pr_fmt(fmt), ##__VA_ARGS__)
#define pr_warn(...) \
pr_warning(__VA_ARGS__)
-#define pr_warn_once(fmt, ...) \
- log_once(LOG_WARNING, pr_fmt(fmt), ##__VA_ARGS__)
#define pr_notice(fmt, ...) \
log(LOG_NOTICE, pr_fmt(fmt), ##__VA_ARGS__)
#define pr_info(fmt, ...) \
log(LOG_INFO, pr_fmt(fmt), ##__VA_ARGS__)
+
+#define pr_err_once(fmt, ...) \
+ log_once(LOG_ERR, "%s:%d: " pr_fmt(fmt), __FILE__, __LINE__, ##__VA_ARGS__)
+#define pr_warn_once(fmt, ...) \
+ log_once(LOG_WARNING, "%s:%d: " pr_fmt(fmt), __FILE__, __LINE__, ##__VA_ARGS__)
#define pr_info_once(fmt, ...) \
log_once(LOG_INFO, pr_fmt(fmt), ##__VA_ARGS__)
+
#define pr_cont(fmt, ...) \
printk(KERN_CONT fmt, ##__VA_ARGS__)
#define pr_warn_ratelimited(...) do { \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 6:35 AM (16 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29101762
Default Alt Text
D49989.diff (1 KB)
Attached To
Mode
D49989: LinuxKPI: pr_err_once / pr_warn_once prefix with __FILE__ and __LINE__
Attached
Detach File
Event Timeline
Log In to Comment