From patchwork Tue Apr 17 14:16:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 48746 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8RPZ-0005Zv-5R; Tue, 17 Apr 2018 14:16:45 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753015AbeDQOQl (ORCPT + 1 other); Tue, 17 Apr 2018 10:16:41 -0400 Received: from osg.samsung.com ([64.30.133.232]:46593 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753002AbeDQOQk (ORCPT ); Tue, 17 Apr 2018 10:16:40 -0400 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 69C792A317; Tue, 17 Apr 2018 07:16:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RxpPASRbI6HQ; Tue, 17 Apr 2018 07:16:38 -0700 (PDT) Received: from vento.lan (unknown [201.86.164.1]) by osg.samsung.com (Postfix) with ESMTPSA id 649882A30E; Tue, 17 Apr 2018 07:16:37 -0700 (PDT) Date: Tue, 17 Apr 2018 11:16:34 -0300 From: Mauro Carvalho Chehab To: Hans Verkuil Cc: LMML Subject: [PATCH v4l-utils] v4l2-compliance: identify if compiled with 32 or 64 bits Message-ID: <20180417111634.2e6f2cb0@vento.lan> Organization: Samsung X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org As we need to have a 32 bits version in order to check for compat32 issues, let's print if v4l2-compliance was built with 32 or 64 bits. Signed-off-by: Mauro Carvalho Chehab Thanks, Mauro diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp index eb1f90fd7ad8..ecfcc7716bca 100644 --- a/utils/v4l2-compliance/v4l2-compliance.cpp +++ b/utils/v4l2-compliance/v4l2-compliance.cpp @@ -1271,9 +1271,9 @@ int main(int argc, char **argv) #ifdef SHA #define STR(x) #x #define STRING(x) STR(x) - printf("v4l2-compliance SHA : %s\n", STRING(SHA)); + printf("v4l2-compliance SHA : %s, %zd bits\n", STRING(SHA), sizeof(void *) * 8); #else - printf("v4l2-compliance SHA : not available\n"); + printf("v4l2-compliance SHA : not available, %zd bits\n", sizeof(void *) * 8); #endif struct utsname uts;