Hi Joe, On Wed, Jun 29, 2011 at 8:46 PM, Joe Perches <joe@xxxxxxxxxxx> wrote: > On Wed, 2011-06-29 at 20:23 -0300, Aloisio Almeida wrote: >> >> Today, dynamic_debug can add __func__ to the output as >> >> desired so I think that it's not really necessary >> >> to add to any <foo>_dbg callsite. >> That's true only for pr_debug() function. You cannot add __func__ info >> on dev_dbg() calls dynamically. > > I believe that's false. It's definitely stored. > > #define dynamic_dev_dbg(dev, fmt, ...) do { \ > static struct _ddebug descriptor \ > __used \ > __attribute__((section("__verbose"), aligned(8))) = \ > { KBUILD_MODNAME, __func__, __FILE__, fmt, __LINE__, \ > _DPRINTK_FLAGS_DEFAULT }; \ > if (unlikely(descriptor.enabled)) \ > dev_printk(KERN_DEBUG, dev, fmt, ##__VA_ARGS__); \ > } while (0) > > Jason? True or false? It's stored but not retrieved. If you check lib/dynamic_debug.c you see that only __dynamic_pr_debug() (called by dynamic_pr_debug() ) adds such information on prints. The dev_printk() does not check _DPRINTK_FLAGS_INCL_* flags. > I think you should add NFC to nfc_dev_err too. That's make sense to me also. Aloisio -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html