Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757564Ab0KJXqb (ORCPT ); Wed, 10 Nov 2010 18:46:31 -0500 Received: from mail.perches.com ([173.55.12.10]:4955 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757421Ab0KJXq2 (ORCPT ); Wed, 10 Nov 2010 18:46:28 -0500 From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Dave Kleikamp , jfs-discussion@lists.sourceforge.net Subject: [PATCH 5/6] fs/jfs: Add printf format/argument verification Date: Wed, 10 Nov 2010 15:46:17 -0800 Message-Id: X-Mailer: git-send-email 1.7.3.1.g432b3.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1034 Lines: 30 Add __attribute__((format... to jfs_error. All arguments matched formats, no other changes necessary. Signed-off-by: Joe Perches --- fs/jfs/jfs_superblock.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/jfs/jfs_superblock.h b/fs/jfs/jfs_superblock.h index 884fc21..1da2538 100644 --- a/fs/jfs/jfs_superblock.h +++ b/fs/jfs/jfs_superblock.h @@ -108,6 +108,8 @@ struct jfs_superblock { extern int readSuper(struct super_block *, struct buffer_head **); extern int updateSuper(struct super_block *, uint); + +__attribute__((format(printf, 2, 3))) extern void jfs_error(struct super_block *, const char *, ...); extern int jfs_mount(struct super_block *); extern int jfs_mount_rw(struct super_block *, int); -- 1.7.3.1.g432b3.dirty -- 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/