> Also lets you do some > sort of macro: > #define dprintk(dev, fmt, args...) dev_dbg(dev, "<%s> " fmt, __func__, ## > args) > or > #define dprintk(fmt, args...) dev_dbg(&i2c_imx->adapter.dev, "<%s> " fmt, > __func__, ## args)
Thank you (and all others) for all comments and for help writing this driver. Regarding such macros, I think it is pointless. Because there is opinion, that all kernel drivers should look similar, and dev_dbg() is used in most drivers. It is macro itself, therefore I think in the future would be easier to read and debug this driver with standard debug macro. BR, Darius _______________________________________________ i2c mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/i2c
