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

2021-01-29 Thread Doug Anderson
Hi, On Wed, Jan 27, 2021 at 11:50 PM Stephen Zhang wrote: > > int kdbgetsymval(const char *symname, kdb_symtab_t *symtab) > { > - if (KDB_DEBUG(AR)) > - kdb_printf("kdbgetsymval: symname=%s, symtab=%px\n", symname, > - symtab); > +

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

2021-01-27 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: