From patchwork Wed Jul 10 17:58:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauricio Faria de Oliveira X-Patchwork-Id: 11038783 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9B1A114C0 for ; Wed, 10 Jul 2019 17:58:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DE131FF2D for ; Wed, 10 Jul 2019 17:58:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 823872892A; Wed, 10 Jul 2019 17:58:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F9B31FF2D for ; Wed, 10 Jul 2019 17:58:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727585AbfGJR65 (ORCPT ); Wed, 10 Jul 2019 13:58:57 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:59977 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727222AbfGJR65 (ORCPT ); Wed, 10 Jul 2019 13:58:57 -0400 Received: from mail-qt1-f197.google.com ([209.85.160.197]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hlGrn-0007aw-Nj for fstests@vger.kernel.org; Wed, 10 Jul 2019 17:58:55 +0000 Received: by mail-qt1-f197.google.com with SMTP id s9so2981503qtn.14 for ; Wed, 10 Jul 2019 10:58:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=ORpJvARdAqrf6FAAZu8tBmW5Xs05zGa/5nw0eXNf9Nk=; b=t0QW/AV6FEe2F8b70nACGAJjBzRFWRtfqgcoDHH8AOR/w37jYvDEpXVAH/QVPpKjPc 1sS18aKb+e9DGxBNLUZuxYC/jUsJzzYsSOuTHwOhohmTrjnaSaJaWz/LmRdh+YUpLEYL IsCvjDoj6vmKo+M9Rlxpqgv4GQC+QztUUHqf7B7QGwTHjrJ6VAbhyhNZBKfKR6/DpKtn 41la1IedvYsWwnfWyz//n19S26y0vMpxnhQ21Frvc/oo2hxj4yp4HpyBQZnygk8Juc7f 4EhxS3Bx1A67kRhetSplvq/SnJ9fW6BcoE5TsSJRppyXQIPl4iQSaMOWymzXxsa7WhLR nnhA== X-Gm-Message-State: APjAAAUrY7W0DIHXcz2EucJQyALPGRPKmh/deWLSJRvkc8rb5hdVNqt0 CVccG+tXrAZtf35e6vcCInT1WYGGZYo7iLz9a1ZMvCAG0LxW3JPD8VpyaY+2gOPUy6I/5wfBbRk 54xEkqQatjd4RDZC9uDu2E+n6/8yOi9uJHOw= X-Received: by 2002:ae9:e411:: with SMTP id q17mr19049510qkc.465.1562781534761; Wed, 10 Jul 2019 10:58:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfLaO9k9mMo9OE1vZKY6W4ROwBKpzHTVCYfvqlInJyRlB1reEBZuYV4rJZwRoUnIbOZGSRkw== X-Received: by 2002:ae9:e411:: with SMTP id q17mr19049498qkc.465.1562781534509; Wed, 10 Jul 2019 10:58:54 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:4e7:1017:3da7:3d04:ea25:3a0]) by smtp.gmail.com with ESMTPSA id u19sm1598465qka.35.2019.07.10.10.58.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 10 Jul 2019 10:58:54 -0700 (PDT) From: Mauricio Faria de Oliveira To: fstests@vger.kernel.org Subject: [PATCH] common/rc: print out kernel version too Date: Wed, 10 Jul 2019 14:58:09 -0300 Message-Id: <20190710175809.13391-1-mfo@canonical.com> X-Mailer: git-send-email 2.17.1 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The kernel version (uname -v) may also be needed in addition to the kernel release (uname -r) in order to properly identify and distinguish different kernel builds in some cases/distributions. For example, in the Ubuntu kernel package the test/debug string is usually a suffix to the version field, not the release field. $ uname -rv 4.15.0-51-generic #55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019 $ uname -rv 4.15.0-51-generic #55+test20190520b1 SMP Mon May 20 11:57:40 -03 2019 Looking at other OSes uname(1) man pages it looks like '-v' is quite standard, and the Linux man page only cites '-p' and '-i' as non-portable, so the change should be OK. The only caller is the 'check' script for the header print out, so it's contained. Signed-off-by: Mauricio Faria de Oliveira Reviewed-by: Gabriel Krisman Bertazi --- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rc b/common/rc index dcd591b33b87..000a7cc821cf 100644 --- a/common/rc +++ b/common/rc @@ -2794,7 +2794,7 @@ _full_platform_details() { local os=`uname -s` local host=`hostname -s` - local kernel=`uname -r` + local kernel=`uname -rv` local platform=`uname -m` echo "$os/$platform $host $kernel" }