From patchwork Fri Jun 22 14:11:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 139653 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp927504lji; Fri, 22 Jun 2018 07:16:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpebKcilMa+zAEZJLlLvQfFGXjln8jrfihV65MmN8/DFYDq7nvaDd3Sh2I9sO93rlu0QZE4Z X-Received: by 2002:a37:2ac7:: with SMTP id q68-v6mr1403982qkq.374.1529676995030; Fri, 22 Jun 2018 07:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529676995; cv=none; d=google.com; s=arc-20160816; b=q4KAl09PHDrfich2X4rKvfD3MyN4ystO8rYDGb/k9xOuAoBvaPp81IPjuSrfFEnnTs JylnykJJzYvDH67qc4t9KwjJlrA1ByCV0ydU0vj6zgA2WQuL9Afd8kzCS7IL5Aau7X7X BgSQlv2cA5YD/cdJ05N9w8tzTm98Ec0C9CShZ3htJ3+h0TjvzmVbBAdH8f1b49BVZerJ Jovdgflgfz7hYQ83TK/eDoicLactk6gtpPRdDedpWat/MdasZU/C3zc8L2qoSOUFdg16 ECz9KdxnyXjIOAkdiTVleouSfsNRfViUGp3XGTFw6dCWwSIa6GYKUe8OHFA+7q21aiVG akzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=fnpGrO7LfHgDM9qOgnz9eQOPP3P2qdZCTNj/MmDlLto=; b=mfTKKEBfzoslUY8VFk8DtWkSSRoV8kumcNUa4FKD1NIIWdI62nXM/WIWCyak5m5am9 g1moPbHU6SKq8orcJnIv9u4+Fobn619VAF7CKJygZUiYqUhw9QVxmLosFs/jFL815/q5 3nDrI51SjJVE5mIAhzunx2YLJbjOZgyGHkfqnn3lT8i9VqRE4hoxFqRAoHPtqFckxxFq lu9+cUtZLqM1ZUK39Ceitt5DzmmI0aKeIXaRLEKi0V4CDyUpuxgbBsMS8Z2VSBACGDy0 Qhx1CBqDfRWpfp3eG4G+iGlOPlp9csEc0XMJtPoHENWGRHdwWll6Wl6/GsSjD7mcvbcu vRfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NRnkXG37; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id u11-v6si379437qke.328.2018.06.22.07.16.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 22 Jun 2018 07:16:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NRnkXG37; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWMrX-0001AN-MO for patch@linaro.org; Fri, 22 Jun 2018 10:16:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWMnN-00065V-Ro for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:12:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWMnM-00067d-BU for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:12:13 -0400 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:37668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWMnM-000675-4l for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:12:12 -0400 Received: by mail-wr0-x234.google.com with SMTP id k6-v6so6862379wrp.4 for ; Fri, 22 Jun 2018 07:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fnpGrO7LfHgDM9qOgnz9eQOPP3P2qdZCTNj/MmDlLto=; b=NRnkXG3761JwfTYGy50uWxWbCiC0QaZAtJNK5Ma7E3+eJHTX8w0fl7rNdLRj1G7lyV Xln+7DNZcCTx8KXY7div8OWDMswfdNNY4sMBEUFJHN8P9uwapMecz0dioyR8EsEU4mjO /FDWPigI34lhcT6QmdD4wJH3SS0P71H65bfnQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fnpGrO7LfHgDM9qOgnz9eQOPP3P2qdZCTNj/MmDlLto=; b=OUjF9fOSdIUsDeSy0sC91YaGBTWquB/lrbIXcHxiJSxjdMs09gVMbUr711Ta3QCF1u WmKDBkM0OTh2ChMzR7cAyzgL6TicLux0i5pXrqSypGdFk1csEyaqEzi08MgEYPuVMac8 w6MEP5rGiZGOJC7BATwvkG3mXgScK19KZ8GcaLqvTPQPWJwjm9zw/pWYpIuXHtETMRgP 8YC9QOMKZ2i8z6WBJoAsZSgsVeL0t9K6CkHxq7V/nFm6Dw+eKNiIrPauqyghpEILwfQY wFbogxV1aBSL9G/XWmDE7Q0aaFiwj8CF4NezK0Dzx4Q8DxAidZOsNEEKz1stOAOSseBW NJmg== X-Gm-Message-State: APt69E3zaeEakUYNVScqqPgczDUEFSJzEMI+wDbyhUIauRz4a51AO+QB uESCWqOIff9EqnMSB3KvvCFivA== X-Received: by 2002:adf:e590:: with SMTP id l16-v6mr1665862wrm.190.1529676731106; Fri, 22 Jun 2018 07:12:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y3-v6sm8625644wro.21.2018.06.22.07.12.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Jun 2018 07:12:08 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 912063E08E5; Fri, 22 Jun 2018 15:12:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 22 Jun 2018 15:11:48 +0100 Message-Id: <20180622141205.16306-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622141205.16306-1-alex.bennee@linaro.org> References: <20180622141205.16306-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::234 Subject: [Qemu-devel] [RISU PATCH v4 05/22] risu: add zlib indication to help text X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-arm@nongnu.org, richard.henderson@linaro.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is a simple aide-memoir as it can be tricky to determine this with a simple statically compiled binary. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- risu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/risu.c b/risu.c index 616fc33..c684c90 100644 --- a/risu.c +++ b/risu.c @@ -39,6 +39,9 @@ size_t signal_count; #ifdef HAVE_ZLIB #include gzFile gz_trace_file; +#define TRACE_TYPE "compressed" +#else +#define TRACE_TYPE "uncompressed" #endif sigjmp_buf jmpbuf; @@ -273,7 +276,7 @@ void usage(void) fprintf(stderr, "between master and apprentice risu processes.\n\n"); fprintf(stderr, "Options:\n"); fprintf(stderr, " --master Be the master (server)\n"); - fprintf(stderr, " -t, --trace=FILE Record/playback trace file\n"); + fprintf(stderr, " -t, --trace=FILE Record/playback " TRACE_TYPE " trace file\n"); fprintf(stderr, " -h, --host=HOST Specify master host machine (apprentice only)" "\n");