On Fri, 2012-09-28 at 17:00 +0530, Mahapatra, Chandrabhanu wrote: > > I think you could just do: > > > > #ifdef DSS_SUBSYS_NAME > > #ifdef pr_fmt > > #undef pr_fmt > > #endif > > #define pr_fmt(fmt) DSS_SUBSYS_NAME ": " fmt > > #endif > > > > For the case where there's no DSS_SUBSYS_NAME, there's no need to undef > > pr_fmt, only to redefine it again back to the original. > > > > Tomi > > > > Ok. But I thought it could be more clearer if the definition of pr_fmt > is more clearer in both the cases, when DSS_SUBSYS_NAME is defined and > when not. Ok, then it's fine for me. Tomi
Attachment:
signature.asc
Description: This is a digitally signed message part