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: 10345205 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8820460542 for ; Tue, 17 Apr 2018 14:16:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7986A2022B for ; Tue, 17 Apr 2018 14:16:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C27428346; Tue, 17 Apr 2018 14:16:44 +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 E23F52022B for ; Tue, 17 Apr 2018 14:16:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753015AbeDQOQl (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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;