Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933190Ab0HLIae (ORCPT ); Thu, 12 Aug 2010 04:30:34 -0400 Received: from mtagate6.uk.ibm.com ([194.196.100.166]:54283 "EHLO mtagate6.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933075Ab0HLIab (ORCPT ); Thu, 12 Aug 2010 04:30:31 -0400 Date: Thu, 12 Aug 2010 10:31:04 +0200 From: Heiko Carstens To: Andrew Morton , Linus Torvalds , Alexey Dobriyan Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH] partitions: fix build error in ibm partition detection code Message-ID: <20100812083104.GC7814@osiris.boeblingen.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1351 Lines: 37 Subject: [PATCH] partitions: fix build error in ibm partition detection code From: Heiko Carstens 9c867fbe "partitions: fix sometimes unreadable partition strings" coverted one line within the ibm partition code incorrectly. Fix this to get rid of a build error. fs/partitions/ibm.c: In function 'ibm_partition': [...] fs/partitions/ibm.c:185: error: too many arguments to function 'strlcat' Cc: Alexey Dobriyan Signed-off-by: Heiko Carstens --- fs/partitions/ibm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/partitions/ibm.c b/fs/partitions/ibm.c index d1b8a5c..55610aa 100644 --- a/fs/partitions/ibm.c +++ b/fs/partitions/ibm.c @@ -182,7 +182,8 @@ int ibm_partition(struct parsed_partitions *state) offset = (info->label_block + 1); } else { /* unlabeled disk */ - strlcat(tmp, sizeof(tmp), "(nonl)", PAGE_SIZE); + snprintf(tmp, sizeof(tmp), "(nonl)"); + strlcat(state->pp_buf, tmp, PAGE_SIZE); size = i_size >> 9; offset = (info->label_block + 1); } -- 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/