Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932380AbVLAR5u (ORCPT ); Thu, 1 Dec 2005 12:57:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932385AbVLAR5u (ORCPT ); Thu, 1 Dec 2005 12:57:50 -0500 Received: from mx1.redhat.com ([66.187.233.31]:6578 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S932381AbVLAR5t (ORCPT ); Thu, 1 Dec 2005 12:57:49 -0500 Date: Thu, 1 Dec 2005 12:57:32 -0500 From: Dave Jones To: Mark Lord Cc: linux-kernel@vger.kernel.org, Linus Torvalds Subject: Re: [PATCH] Fix bytecount result from printk() Message-ID: <20051201175732.GD19433@redhat.com> Mail-Followup-To: Dave Jones , Mark Lord , linux-kernel@vger.kernel.org, Linus Torvalds References: <438F1D05.5020004@rtr.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <438F1D05.5020004@rtr.ca> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 858 Lines: 19 On Thu, Dec 01, 2005 at 10:55:49AM -0500, Mark Lord wrote: > printk() returns a bytecount, which nothing actually appears to use. We do check it in a few places. arch/x86_64/kernel/traps.c: i += printk(" "); \ arch/x86_64/kernel/traps.c: i += printk(" <%s> ", id); arch/x86_64/kernel/traps.c: i += printk(" "); arch/x86_64/kernel/traps.c: i += printk(" "); arch/x86_64/kernel/traps.c: i += printk(" "); drivers/char/mem.c: ret = printk("%s", tmp); Dave - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/