From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764247AbdAIWAW (ORCPT ); Mon, 9 Jan 2017 17:00:22 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:34176 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764232AbdAIWAS (ORCPT ); Mon, 9 Jan 2017 17:00:18 -0500 Date: Tue, 10 Jan 2017 02:59:55 +0300 From: Alexey Dobriyan To: Andrew Morton Cc: linux-kernel@vger.kernel.org, apw@canonical.com, joe@perches.com Subject: [PATCH] checkpatch.pl: warn against using %Z Message-ID: <20170109235955.GA6787@avx2> References: <20170103230126.GA30170@avx2> <20170105160748.1f3696c51cd4e56de132243d@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170105160748.1f3696c51cd4e56de132243d@linux-foundation.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org %Z is going to be removed in favour of %z. Signed-off-by: Alexey Dobriyan --- scripts/checkpatch.pl | 6 ++++++ 1 file changed, 6 insertions(+) --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5189,6 +5189,12 @@ sub process { "\%Ld/%Lu are not-standard C, use %lld/%llu\n" . $herecurr); last; } + # check for %Z + if ($string =~ /(?