Re: [PATCH v4] kdb: kdb_support: Fix debugging information problem

2021-02-04 Thread Daniel Thompson
On Thu, Feb 04, 2021 at 08:07:09PM +0800, Stephen Zhang wrote: > There are several common patterns. > > 0: > kdb_printf("...",...); > > which is the normal one. > > 1: > kdb_printf("%s: "...,__func__,...) > > We could improve '1' to this : > > #define kdb_func_printf(fo

[PATCH v4] kdb: kdb_support: Fix debugging information problem

2021-02-04 Thread Stephen Zhang
There are several common patterns. 0: kdb_printf("...",...); which is the normal one. 1: kdb_printf("%s: "...,__func__,...) We could improve '1' to this : #define kdb_func_printf(format, args...) \ kdb_printf("%s: " format, __func__, ## args) 2: