dm: core: Update log method for uclass_find_device_by_seq
PATCH v2 1/1 dm: core: Update log method for uclass_find_device_by_seq
Use log() insted of debug() for uclass_find_device_by_seq function, since this print is very much and we can filter it out with log() interface.
---
Changes in v2:
- use log_debug() instead of log()
drivers/core/uclass.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
drivers/core/uclass.c +7 -4
@@ -17,6 +17,8 @@#include <dm/uclass-internal.h> #include <dm/util.h> +#define LOG_CATEGORY LOGC_DM +DECLARE_GLOBAL_DATA_PTR ;struct uclass *uclass_find (enum uclass_id key)
@@ -301,7 +303,7 @@ int uclass_find_device_by_seq(enum uclass_id id, int seq_or_req_seq,int ret; *devp =NULL ; -debug ("%s: %d %d\n" , __func__, find_req_seq, seq_or_req_seq); +log_debug ("%d %d\n" , find_req_seq, seq_or_req_seq);if (seq_or_req_seq ==-1 )return -ENODEV ; ret =uclass_get (id, &uc);
@@ -309,15 +311,16 @@ int uclass_find_device_by_seq(enum uclass_id id, int seq_or_req_seq,return ret; uclass_foreach_dev(dev, uc) { -debug (" - %d %d '%s'\n" , dev->req_seq, dev->seq, dev->name); +log_debug (" - %d %d '%s'\n" , + dev->req_seq, dev->seq, dev->name);if ((find_req_seq ? dev->req_seq : dev->seq) == seq_or_req_seq) { *devp = dev; -debug (" - found\n" ); +log_debug (" - found\n" );return 0 ; } } -debug (" - not found\n" ); +log_debug (" - not found\n" );return -ENODEV ; }
Signature · 1 line
2.17.1
PATCH v2 1/1 dm: core: Update log method for uclass_find_device_by_seq
Quoted 5 lines · Kever Yang
Use
log()insted ofdebug()foruclass_find_device_by_seqfunction, since this print is very much and we can filter it out withlog()interface.
Quoted 8 lines
Signed-off-by Kever Yang <[email protected]>---
Changes in v2:
- uselog_debug()instead oflog()drivers/core/uclass.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
PATCH v2 1/1 dm: core: Update log method for uclass_find_device_by_seq
Quoted 5 lines · Kever Yang
Use
log()insted ofdebug()foruclass_find_device_by_seqfunction, since this print is very much and we can filter it out withlog()interface.
Quoted 8 lines
Signed-off-by Kever Yang <[email protected]>---
Changes in v2:
- uselog_debug()instead oflog()drivers/core/uclass.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
Applied to u-boot-dm, thanks!