Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4952578pxj; Tue, 25 May 2021 22:16:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdHhrS6dPCcSUt3Rael6uNsvUxe18oYfwKmqmrrad1Pi/VRD+G0Fvi0G8QVKP9Ew7OxIAn X-Received: by 2002:a02:a19c:: with SMTP id n28mr1296975jah.117.1622006180114; Tue, 25 May 2021 22:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622006180; cv=none; d=google.com; s=arc-20160816; b=T0JQf9nxPRnZ9sMUKF5xQwtGtfK8b0zI3b/AvPNt/+5tgChFJzw1hHzVKQGlrCdI5F uX3Wio31dv7it49ljF8Ga3OJXp4dwAERJ7nNWohw2dfEHBBEALQAnbxX7IpM0SAzID2V tdaC0cowpLCkRYoxNU84+FrL28yCkDZS4CUTzvsGThJCBHbk3EZvV9pn74FF494igYBW Mlb2/3x9sj/4qgXxRa3D1UE0CF3xDNj5YNfqZO6Y/igg7CQiI8nAmpmH3NLGw8GBU0uM pn0TjABPE8G4Qy9v+pCVUVOOnOLJHphB1Z4VXVgRMbW325y+aV7CJG4k7CQxaeoDyxZm /xfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=tuQ9nKR0cuSGFqJeNxh6e/A49jphmCAZQX2vjqtzuuA=; b=uzJVVJYywOFRJETavmyYtnWVlELiQdg5KbsHfT68UH6bhksD0BP1J/NDY2tAbNcSQB gPgCoEPVLkmynumQK949MUwHtRJpvkEgSXDd3qz4CF4Wn/fWu0Oa6Oje7J5vO2MWGNwc E2tsW2BfG2hWod7fO5REMClO01s5Nb8tA92mFFfC8kOfjDv10yHiFram5wCHOWoRi9VH PTz2O8ON8YDCCm3+MSzDtTfFmDxMKUy5jtUnGu052Vyt5LSrMv8VqoWAsBdvyegsTAmP 4dWvLkFN0dy/r/xsppy/iXFJRq8FW/B6LxTVnfgH7eUTBdB9iek9+QEDHmHMjjjN53kr QHJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cnTmwR4g; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si5339059ilu.55.2021.05.25.22.16.05; Tue, 25 May 2021 22:16:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cnTmwR4g; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbhEZFPB (ORCPT + 99 others); Wed, 26 May 2021 01:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbhEZFOq (ORCPT ); Wed, 26 May 2021 01:14:46 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02B6DC061756 for ; Tue, 25 May 2021 22:13:15 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id q6so181380pjj.2 for ; Tue, 25 May 2021 22:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=tuQ9nKR0cuSGFqJeNxh6e/A49jphmCAZQX2vjqtzuuA=; b=cnTmwR4gQztrYqp4GWoiQv3/+XQh/krfS715N7hjTXj1Ews649XxtWGwpHaDNcIByo ZvIsZyR2q0y13YLo8E3UNYkxa21l3XUHxxcWPIkbHWl+SFWlGE5vJ87N+LTby5f56kmr RescCVTV1sbXcvBdJ82gcpx9aMx3sIB8axM6K9JYT/zzxaht00Yoqp+4WsRJQF/n/vCS isKL9X07rXiUZzBJ7PIbN0RbbyMGYR6tygaSdhbPxts6JYC6+01aBmBF2nRDOZHC6Euw CfRHnA8R0lJYkiB3rtEkJQya2NUFoNhiVFHhfxTlvYkO5HVrsDtpClDufCecBjTWsWA1 jseA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=tuQ9nKR0cuSGFqJeNxh6e/A49jphmCAZQX2vjqtzuuA=; b=tOWfN1Vkdg/F9stmmJ4QoHyNI5I400HERFrbzdhgevKy8ecXmrbibka4U8DIRoHU2v KHSeQD1d0BZgQgBdITSzj3a6nC/x9eOrIjoj+zMnkhD33HyuTbmoTlVpBAov6GONBh7c esN5ld7GGLVIZojYBAjm2fsya+G0y6Iacvs+zUsYxVHYyQYmL3svJjSZNK3NhxXh0Nx6 7lbGisdTFsbvXzI0lN1soiAsyjO+vcAjMXuNabRBbXnAoFl8tLj155YxYJBhdxzv61A4 wKvBFfMQ4gJA6/tnVq5M9kzs6ErGSyWaCdYG7W7CUA9q0KZcVerALh9wyb0+3ooXQ9mk 6mPg== X-Gm-Message-State: AOAM533kvCVLmgyQEXmRWavrQVzq1W8Lv4gBNTmt2hDhNubWOez9fM1J U9DQmD7Q++2hA6H7rxQ87O8W0101SpagLA== X-Received: by 2002:a17:90a:549:: with SMTP id h9mr2162116pjf.158.1622005994416; Tue, 25 May 2021 22:13:14 -0700 (PDT) Received: from han1-mobl3.intel.com ([2601:1c0:6a01:d830::e853]) by smtp.gmail.com with ESMTPSA id h8sm13865944pfv.60.2021.05.25.22.13.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 22:13:13 -0700 (PDT) From: Tedd Ho-Jeong An To: linux-bluetooth@vger.kernel.org Subject: [PATCH V2 3/4] tools/mgmt-tester: Print hexdump if mgmt event parameters not match Date: Tue, 25 May 2021 22:13:09 -0700 Message-Id: <20210526051310.423630-3-hj.tedd.an@gmail.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210526051310.423630-1-hj.tedd.an@gmail.com> References: <20210526051310.423630-1-hj.tedd.an@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Tedd Ho-Jeong An This patch displays the hexdump of expected and received mgmt event parameters. --- tools/mgmt-tester.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index c9de770c1..767e010a6 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -6780,6 +6780,9 @@ static bool verify_alt_ev(const void *param, uint16_t length) if (test->expect_alt_ev_param && memcmp(test->expect_alt_ev_param, param, length)) { tester_warn("Event parameters do not match"); + util_hexdump('>', param, length, print_debug, ""); + util_hexdump('!', test->expect_alt_ev_param, length, + print_debug, ""); return false; } -- 2.26.3