Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752842Ab2EaKcM (ORCPT ); Thu, 31 May 2012 06:32:12 -0400 Received: from mailgate.zerties.org ([176.9.120.153]:38193 "EHLO gandalf.zerties.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751387Ab2EaKb5 (ORCPT ); Thu, 31 May 2012 06:31:57 -0400 From: Christian Dietrich To: Sergei Shtylyov Cc: Christian Dietrich , "David S. Miller" , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, vamos-dev@lists.cs.fau.de Subject: [PATCH] ide: icside.c: fix printk format string compile warning References: <20120529103002.GA13283@faui49q.informatik.uni-erlangen.de> <4FC4C391.50700@mvista.com> Date: Thu, 31 May 2012 12:08:09 +0200 In-Reply-To: <4FC4C391.50700@mvista.com> (Sergei Shtylyov's message of "Tue, 29 May 2012 16:39:45 +0400") Message-ID: <86hauw7jee.fsf_-_@gandalf.zerties.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1135 Lines: 30 Peak datarate is never bigger than an integer, and can therefore, as suggested in the printk format string, casted to an integer. --- drivers/ide/icside.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ide/icside.c b/drivers/ide/icside.c index 83e5100..755ef6b 100644 --- a/drivers/ide/icside.c +++ b/drivers/ide/icside.c @@ -271,9 +271,9 @@ static void icside_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) ide_set_drivedata(drive, (void *)cycle_time); - printk("%s: %s selected (peak %dMB/s)\n", drive->name, - ide_xfer_verbose(xfer_mode), - 2000 / (unsigned long)ide_get_drivedata(drive)); + printk(KERN_INFO "%s: %s selected (peak %dMB/s)\n", drive->name, + ide_xfer_verbose(xfer_mode), + (int) (2000 / (unsigned long)ide_get_drivedata(drive))); } static const struct ide_port_ops icside_v6_port_ops = { -- 1.7.5.4 -- 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/