public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Frank Seidel <frank@f-seidel.de>
To: Jean Delvare <khali@linux-fr.org>
Cc: Frank Seidel <fseidel@suse.de>,
	linux kernel <linux-kernel@vger.kernel.org>,
	akpm@linux-foundation.org, ben-linux@fluff.org,
	linux-i2c@vger.kernel.org, w.sang@pengutronix.de,
	"David S. Miller" <davem@davemloft.net>,
	ukleinek@informatik.uni-freiburg.de,
	Frans Pop <elendil@planet.nl>,
	Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Subject: Re: [PATCH] i2c: add missing KERN_* constants to printks
Date: Sun, 08 Feb 2009 14:11:52 +0100	[thread overview]
Message-ID: <498EDA18.1090300@f-seidel.de> (raw)
In-Reply-To: <20090208000553.059a0732@hyperion.delvare>

Hi,

Jean Delvare wrote:
>> +	printk(KERN_ERR "i2c: ICR: %08x ISR: %08x\n"
>>  	       "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
>>  	for (i = 0; i < i2c->irqlogidx; i++)
>>  		printk("[%08x:%08x] ", i2c->isrlog[i], i2c->icrlog[i]);
> 
> This last printk also lacks a log level. You can't add it in the loop,
> but you could add one printk before the loop, printing just the log level.

Isn't the last printk just a followup of the previous KERN_ERR which
doesn't have a newline? And i'm told only on new line beginnings the
loglevel should be set.

> I second Uwe's comments: it would be much better to add the log level
> in the DEBx macros. Additionally, some discussion is needed as to what
> log level would be appropriate. You put KERN_WARNING for all but some
> of these messages are clearly debugging messages. As a matter of fact,
> DEBx macros are all about debugging.
> 
> So I think that a good patch would 1* add KERN_DEBUG to the DEBx macros
> and 2* check for all usage of these DEBx macros and turn all messages
> which aren't actual debug messages to raw printks. As this will require
> some more work, you may want to split these changes off your initial
> patch.

Ok, i fully agree with you. So, i'll redo the patch asap.

Thanks for your feedback,
Frank

  reply	other threads:[~2009-02-08 13:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 13:45 [PATCH] i2c: add missing KERN_* constants to printks Frank Seidel
     [not found] ` <498C3EEA.5060508-l3A5Bk7waGM@public.gmane.org>
2009-02-06 18:35   ` Uwe Kleine-König
     [not found]     ` <20090206183542.GB6361-HFFVJYpyMKqzQB+pC5nmwQ@public.gmane.org>
2009-02-06 19:59       ` Frank Seidel
     [not found]         ` <498C96B0.7050408-l3A5Bk7waGM@public.gmane.org>
2009-02-06 20:53           ` Uwe Kleine-König
2009-02-06 21:23           ` Jean Delvare
     [not found]             ` <20090206222314.6c2b36f7-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-07 10:37               ` Frank Seidel
     [not found]                 ` <498D647C.8070107-l3A5Bk7waGM@public.gmane.org>
2009-02-07 10:52                   ` Uwe Kleine-König
     [not found]                     ` <20090207105219.GA12371-HFFVJYpyMKqzQB+pC5nmwQ@public.gmane.org>
2009-02-07 15:58                       ` Jean Delvare
2009-02-07 23:05   ` Jean Delvare
2009-02-08 13:11     ` Frank Seidel [this message]
     [not found]       ` <498EDA18.1090300-aMRDT+nbkrEb1SvskN2V4Q@public.gmane.org>
2009-02-08 13:47         ` Jean Delvare
     [not found]           ` <20090208144751.46184041-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-08 14:16             ` Frank Seidel
2009-02-09  8:35             ` Wolfram Sang
     [not found]               ` <20090209083537.GA3438-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-02-09 10:27                 ` Jean Delvare
2009-02-08 14:18   ` [PATCHv2 1/2] " Frank Seidel
     [not found]     ` <498EE9C9.4080002-l3A5Bk7waGM@public.gmane.org>
2009-02-08 14:20       ` [PATCHv2 2/2] i2c: adapt debug macros for KERN_* constants Frank Seidel
     [not found]         ` <498EEA2F.5050601-l3A5Bk7waGM@public.gmane.org>
2009-02-09 15:16           ` Jean Delvare
2009-02-10 15:16             ` Wolfram Sang
2009-02-21 12:39             ` Wolfram Sang
2009-02-09 12:22       ` [PATCHv2 1/2] i2c: add missing KERN_* constants to printks Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=498EDA18.1090300@f-seidel.de \
    --to=frank@f-seidel.de \
    --cc=Geert.Uytterhoeven@sonycom.com \
    --cc=akpm@linux-foundation.org \
    --cc=ben-linux@fluff.org \
    --cc=davem@davemloft.net \
    --cc=elendil@planet.nl \
    --cc=fseidel@suse.de \
    --cc=khali@linux-fr.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ukleinek@informatik.uni-freiburg.de \
    --cc=w.sang@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox