From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751867AbcG3Ibg (ORCPT ); Sat, 30 Jul 2016 04:31:36 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:45026 "EHLO mx1.polytechnique.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831AbcG3IbZ (ORCPT ); Sat, 30 Jul 2016 04:31:25 -0400 From: Nicolas Iooss To: Andrew Morton , Andrey Ryabinin , Joe Perches Cc: linux-kernel@vger.kernel.org, Nicolas Iooss Subject: [PATCH 1/1] UBSAN: fix typo in format string Date: Sat, 30 Jul 2016 10:30:10 +0200 Message-Id: <20160730083010.11569-1-nicolas.iooss_linux@m4x.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <2ccb1bd7-6a2a-d7d1-e768-82e25f156c71@m4x.org> References: <2ccb1bd7-6a2a-d7d1-e768-82e25f156c71@m4x.org> X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Sat Jul 30 10:31:22 2016 +0200 (CEST)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.000000, queueID=DB2215647ED Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org handle_object_size_mismatch() used %pk to format a kernel pointer with pr_err(). This seemed to be a misspelling for %pK, but using this to format a kernel pointer does not make much sence here. Therefore use %p instead, like in handle_missaligned_access(). Signed-off-by: Nicolas Iooss --- lib/ubsan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ubsan.c b/lib/ubsan.c index 8799ae5e2e42..fb0409df1bcf 100644 --- a/lib/ubsan.c +++ b/lib/ubsan.c @@ -308,7 +308,7 @@ static void handle_object_size_mismatch(struct type_mismatch_data *data, return; ubsan_prologue(&data->location, &flags); - pr_err("%s address %pk with insufficient space\n", + pr_err("%s address %p with insufficient space\n", type_check_kinds[data->type_check_kind], (void *) ptr); pr_err("for an object of type %s\n", data->type->type_name); -- 2.9.0