On Tue, Jun 30, 2015 at 11:05:34AM +0200, Gwenn Bourrée wrote: > From 3b470f9cfd67ee99a6dc005915b4c86f809c8deb Mon Sep 17 00:00:00 2001 > From: Gwenn Bourree <gwenn.bourree@xxxxxxxxx> > Date: Mon, 29 Jun 2015 16:09:06 +0200 > Subject: [PATCH] Add Debug define for extra levels Why is this here? > > Improve the debug print out by adding extra debug levels > that allow to be verbose and ease the debugging. The > new levels macros are clearer to understand than the > previous numbers. > Checkpatch script resulting errors and warning have been > solved. Don't do more than one thing in a single patch, otherwise it's impossible to review, and I will reject it. Send a patch series please. > Signed-off-by: Gwenn Bourree <gwenn.bourree@xxxxxxxxx> > Signed-off-by: Mustapha Ben Zoubeir <mustaphax.ben.zoubeir@xxxxxxxxx> > Signed-off-by: Nicolas LOUIS <nicolasx.louis@xxxxxxxxx> > Reviewed-by: Arun Ravindran <arun.ravindran@xxxxxxxxx> > --- > drivers/tty/n_gsm.c | 103 > ++++++++++++++++++++++++++++++++++++---------------- Still linewrapped. And your whole email is in base64, making it impossible for me to even edit it to fix any of these issues, if I wanted to. > 1 file changed, 71 insertions(+), 32 deletions(-) > > diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c > index 382d3fc..c295065 100644 > --- a/drivers/tty/n_gsm.c > +++ b/drivers/tty/n_gsm.c > @@ -66,17 +66,18 @@ > static int debug; > module_param(debug, int, 0600); > > -/* Defaults: these are from the specification */ > +#define GSMDBG_VERBOSE_PACKET_REPORT(x) ((x) & BIT(0)) > +#define GSMDBG_FORCE_CARRIER(x) ((x) & BIT(1)) > +#define GSMDBG_DATA_FULL_REPORT(x) ((x) & BIT(2)) > +#define GSMDBG_DLCI_STREAM_REPORT(x) ((x) & BIT(3)) > +#define GSMDBG_DLCI_DATA_REPORT(x) ((x) & BIT(4)) > +#define GSMDBG_DATA_LEN_REPORT(x) ((x) & BIT(5)) As Marcel pointed out, don't do this, use the logging functions the kernel already provides you (i.e. dynamic debug). I stopped reading here. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html