All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [PATCH 05/10] CodingStyle cleanup
Date: Fri, 05 Oct 2007 13:46:10 +0200	[thread overview]
Message-ID: <47062402.1040001@qumranet.com> (raw)
In-Reply-To: <4703B100.5020502-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

Anthony Liguori wrote:
> Mike Day wrote:
>   
>> Signed-off-by: Mike D. Day <ncmike-eyUYGtrA2zhAfugRpC6u6w@public.gmane.org>
>> ---
>>
>>  	if (unlikely(vcpu->mp_state == VCPU_MP_STATE_SIPI_RECEIVED)) {
>> -		printk("vcpu %d received sipi with vector # %x\n",
>> +		printk(KERN_DEBUG "vcpu %d received sipi with vector # %x\n",
>>  		       vcpu->vcpu_id, vcpu->sipi_vector);
>>   
>>     
>
> I think KERN_INFO would better fit the intention of these printk()s.  I 
> don't really like the idea that a guest can trigger a printk() though.  
> A printk() flood can potentially hide important information from the 
> user and it chews disk space on /var/log.  I'm somewhat inclined to 
> think that we should try to avoid these in general but if we do use 
> them, I think we should limit them to only printing out once per-guest.
>
> What do you think Avi?
>   

This should probably be pr_debug() or something.


-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

  parent reply	other threads:[~2007-10-05 11:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03 11:42 [PATCH 05/10] CodingStyle cleanup Mike Day
     [not found] ` <20071003114234.GD1411-dWQC0LfztWZ691elbUnZDP0mZdcr6rg5@public.gmane.org>
2007-10-03 15:10   ` Anthony Liguori
     [not found]     ` <4703B100.5020502-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-10-04 12:29       ` [PATCH] " Mike Day
2007-10-05 11:46       ` Avi Kivity [this message]
     [not found]         ` <47062402.1040001-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-06 17:43           ` [PATCH take 2] CosingStyle cleanup for kvm_main.c Mike Day
  -- strict thread matches above, loose matches on Subject: below --
2007-10-03 11:43 [PATCH 05/10] CodingStyle cleanup Mike Day

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=47062402.1040001@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.