From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from senator.holtmann.net ([87.106.208.187]:35603 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbYHLD7V (ORCPT ); Mon, 11 Aug 2008 23:59:21 -0400 Subject: Re: [ipw3945-devel] [PATCH 1/1] iwlwifi: fix printk newlines From: Marcel Holtmann To: Zhu Yi Cc: Jiri Slaby , ipw3945-devel@lists.sourceforge.net, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Reinette Chatre In-Reply-To: <1218504137.3107.201.camel@debian.sh.intel.com> References: <1218491381-1313-1-git-send-email-jirislaby@gmail.com> <1218502555.25524.22.camel@californication> <1218504137.3107.201.camel@debian.sh.intel.com> Content-Type: text/plain Date: Tue, 12 Aug 2008 05:59:25 +0200 Message-Id: <1218513565.25524.31.camel@californication> (sfid-20080812_055936_458250_8A3E74E3) Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Yi, > > > s = iwl4965_get_sub_band(priv, channel); > > > if (s >= EEPROM_TX_POWER_BANDS) { > > > - IWL_ERROR("Tx Power can not find channel %d ", > > channel); > > > + IWL_ERROR("Tx Power can not find channel %d\n", > > channel); > > > return -1; > > > } > > > > can we not just fix IWL_ERROR to always append the newline? > > We should give the users more control to the style I think. what kind of control do you expect? If you need two lines of debug or error output, call IWL_ERROR twice. This will also result in the KERN_ERR is set and not forgotten since that has to follow the newline. Regards Marcel