Revert "drm/sched: Define pr_fmt() for DRM using pr_*()"
Subsystems (2)
PATCH 1/1 Revert "drm/sched: Define pr_fmt() for DRM using pr_*()"
This reverts commit 36245bd02e88e68ac5955c2958c968879d7b75a9.
--- include/drm/drm_print.h | 14 -------------- 1 file changed, 14 deletions(-)
include/drm/drm_print.h +0 -14
@@ -26,20 +26,6 @@#ifndef DRM_PRINT_H_ #define DRM_PRINT_H_ -/* Define this before including linux/printk.h, so that the format -* string in pr_*() macros is correctly set for DRM. If a file wants -* to define this to something else, it should do so before including -* this header file. -* -* It is encouraged code using pr_err() to prefix their format with -* the string "*ERROR* ", to make it easier to scan kernel logs. For -* instance, -* pr_err("*ERROR* <the rest of your format string here>", args). -*/ -#ifndef pr_fmt -#define pr_fmt (fmt) "[drm] " fmt -#endif -#include <linux/compiler.h> #include <linux/printk.h> #include <linux/seq_file.h>
base-commit: 540527b1385fb203cc4513ca838b4de60bbbc49a
Signature · 1 line
2.42.1
Luben Tuikov <[email protected]> writes:
Hello Luben,
Quoted 2 lines
This reverts commit
36245bd02e88e68ac5955c2958c968879d7b75a9.
You should include a commit message explaining why this commit should be reverted. I noticed that was asked by Jani so I would include what he mentioned in the other email thread.
Quoted 2 lines
Signed-off-by Luben Tuikov <[email protected]>---
Signature · 5 lines
Best regards, Javier Martinez Canillas Core Platforms Red Hat
PATCH 1/1 Revert "drm/sched: Define pr_fmt() for DRM using pr_*()"
From Jani:
The drm_print.[ch] facilities use very few pr_*() calls directly. The users of pr_*() calls do not necessarily include <drm/drm_print.h> at all, and really don't have to.
Even the ones that do include it, usually have <linux/...> includes first, and <drm/...> includes next. Notably, <linux/kernel.h> includes <linux/printk.h>.
And, of course, <linux/printk.h> defines pr_fmt() itself if not already defined.
No, it's encouraged not to use pr_*() at all, and prefer drm device based logging, or device based logging.
This reverts commit 36245bd02e88e68ac5955c2958c968879d7b75a9.
--- include/drm/drm_print.h | 14 -------------- 1 file changed, 14 deletions(-)
include/drm/drm_print.h +0 -14
@@ -26,20 +26,6 @@#ifndef DRM_PRINT_H_ #define DRM_PRINT_H_ -/* Define this before including linux/printk.h, so that the format -* string in pr_*() macros is correctly set for DRM. If a file wants -* to define this to something else, it should do so before including -* this header file. -* -* It is encouraged code using pr_err() to prefix their format with -* the string "*ERROR* ", to make it easier to scan kernel logs. For -* instance, -* pr_err("*ERROR* <the rest of your format string here>", args). -*/ -#ifndef pr_fmt -#define pr_fmt (fmt) "[drm] " fmt -#endif -#include <linux/compiler.h> #include <linux/printk.h> #include <linux/seq_file.h>
base-commit: 540527b1385fb203cc4513ca838b4de60bbbc49a
Signature · 1 line
2.42.1
Luben Tuikov <[email protected]> writes:
Hello Luben,
Quoted 9 lines
From Jani:
The drm_print.[ch] facilities use very few pr_*() calls directly. The users of pr_*() calls do not necessarily include <drm/drm_print.h> at all, and really don't have to.Even the ones that do include it, usually have <linux/...> includes first, and <drm/...> includes next. Notably, <
linux/kernel.h> includes <linux/printk.h>.
Quoted 6 lines
And, of course, <
linux/printk.h> definespr_fmt()itself if not already defined.No, it's encouraged not to use pr_*() at all, and prefer drm device based logging, or device based logging.
Thanks for including the rationale from Jani for the revert.
Quoted 5 lines
This reverts commit
36245bd02e88e68ac5955c2958c968879d7b75a9.Signed-off-by Luben Tuikov <[email protected]>---
Signature · 5 lines
Best regards, Javier Martinez Canillas Core Platforms Red Hat
Quoted 12 lines · Luben Tuikov
From Jani:
The drm_print.[ch] facilities use very few pr_*() calls directly. The users of pr_*() calls do not necessarily include <drm/drm_print.h> at all, and really don't have to.Even the ones that do include it, usually have <linux/...> includes first, and <drm/...> includes next. Notably, <
linux/kernel.h> includes <linux/printk.h>.And, of course, <
linux/printk.h> definespr_fmt()itself if not already defined.
Quoted 7 lines
No, it's encouraged not to use pr_*() at all, and prefer drm device based logging, or device based logging.
This reverts commit
36245bd02e88e68ac5955c2958c968879d7b75a9.
Quoted 31 lines
--- include/drm/drm_print.h | 14 -------------- 1 file changed, 14 deletions(-)include/drm/drm_print.h +0
-14@@ -26,20 +26,6 @@#ifndef DRM_PRINT_H_ #define DRM_PRINT_H_ -/* Define this before including linux/printk.h, so that the format -* string in pr_*() macros is correctly set for DRM. If a file wants -* to define this to something else, it should do so before including -* this header file. -* -* It is encouraged code using pr_err() to prefix their format with -* the string "*ERROR* ", to make it easier to scan kernel logs. For -* instance, -* pr_err("*ERROR* <the rest of your format string here>", args). -*/ -#ifndef pr_fmt -#define pr_fmt (fmt) "[drm] " fmt -#endif -#include <linux/compiler.h> #include <linux/printk.h> #include <linux/seq_file.h> base-commit:
540527b1385fb203cc4513ca838b4de60bbbc49a
Signature · 1 line
Jani Nikula, Intel
Quoted 54 lines · Jani Nikula
Quoted 12 lines · Luben Tuikov
From Jani:
The drm_print.[ch] facilities use very few pr_*() calls directly. The users of pr_*() calls do not necessarily include <drm/drm_print.h> at all, and really don't have to.Even the ones that do include it, usually have <linux/...> includes first, and <drm/...> includes next. Notably, <
linux/kernel.h> includes <linux/printk.h>.And, of course, <
linux/printk.h> definespr_fmt()itself if not already defined.Quoted 7 lines
No, it's encouraged not to use pr_*() at all, and prefer drm device based logging, or device based logging.
This reverts commit
36245bd02e88e68ac5955c2958c968879d7b75a9.Reviewed-by Jani Nikula <[email protected]>Quoted 30 lines
--- include/drm/drm_print.h | 14 -------------- 1 file changed, 14 deletions(-)include/drm/drm_print.h +0
-14@@ -26,20 +26,6 @@#ifndef DRM_PRINT_H_ #define DRM_PRINT_H_ -/* Define this before including linux/printk.h, so that the format -* string in pr_*() macros is correctly set for DRM. If a file wants -* to define this to something else, it should do so before including -* this header file. -* -* It is encouraged code using pr_err() to prefix their format with -* the string "*ERROR* ", to make it easier to scan kernel logs. For -* instance, -* pr_err("*ERROR* <the rest of your format string here>", args). -*/ -#ifndef pr_fmt -#define pr_fmt (fmt) "[drm] " fmt -#endif -#include <linux/compiler.h> #include <linux/printk.h> #include <linux/seq_file.h>
Quoted 2 lines
Quoted 1 line
base-commit:
540527b1385fb203cc4513ca838b4de60bbbc49a
Pushed.
Signature · 2 lines
Regards, Luben