From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752788AbcF1K1B (ORCPT ); Tue, 28 Jun 2016 06:27:01 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:34814 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752207AbcF1KUW (ORCPT ); Tue, 28 Jun 2016 06:20:22 -0400 From: Alexander Kapshuk To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, Alexander Kapshuk Subject: [PATCH 02/32] ver_linux: assign the usage message to a variable and print it Date: Tue, 28 Jun 2016 13:18:36 +0300 Message-Id: <1467109146-20331-2-git-send-email-alexander.kapshuk@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1467109146-20331-1-git-send-email-alexander.kapshuk@gmail.com> References: <1467109146-20331-1-git-send-email-alexander.kapshuk@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch assigns the usage message to a 'usage' variable and prints it. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/ver_linux b/scripts/ver_linux index 30ecc6c..2f1d494 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux @@ -4,9 +4,10 @@ # /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may # differ on your system. -echo 'If some fields are empty or look unusual you may have an old version.' -echo 'Compare to the current minimal requirements in Documentation/Changes.' -echo ' ' +BEGIN { + usage = "If some fields are empty or look unusual you may have an old version.\n" + usage = usage "Compare to the current minimal requirements in Documentation/Changes.\n" + print usage uname -a echo ' ' -- 2.7.3