Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4871929pxj; Tue, 25 May 2021 19:36:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqmzKCT6Qb4MKbAhqn8Lf0CVPUsGEiHsoCzaLwsvov2xOLV6BSKBrtqVH4BE9rSGuOB7Mr X-Received: by 2002:a05:6602:2437:: with SMTP id g23mr21817822iob.142.1621996582285; Tue, 25 May 2021 19:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621996582; cv=none; d=google.com; s=arc-20160816; b=zDQNxkoSLZKwk2dG3fYmoxMb5eZc+3x92fUhb4lFT1MUI3RiTmrbBCm4kcuDBXbm8Z 6zil6/5jZ4qgfELvt/rIb7Ge7pPJYaRt57cTMqubiPSygpcad/cMZpudwNkrJ+EtBjZ8 7MendBXvmXXs4TW3HG2sMY6AABM9dXg2lWUyB55t+MRobYBbklbyY+gr85LJftGgVlqh xGwSZFGIzeVMdzGTDsYCFXrLqcji42lEbSsnA2QSQXY9A7SNNc2lTrioGLnpNzpkewoj ggO22trj9okUhWT5d6AEJwWSdrycaLI5qBhpBBJOlC+t3nO+UUjumhD3buOCDV+7M4U0 VoHQ== 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=DewcmCTxYCZOwEKcYVN3yaW/OkoJNG4nrHgKPUGg1cQ2PrnZNPgSzcNGhD9+AF0ZTM 1zokSvXhcOaYuRXCsx+WyB7KDuP2LPcRun0rWqAIrit/sCkPKcYeWT/aZ8ydpr8bnqQM ns0VjpvHb+LibK9z71YHdAkXuO1VV2LJptx7pE6fOswfTSOKbG1GB0JHo8tUb7EzmtsX h3AZIf98iKxNZluq8XkbZBnHjnlvg9oLetP75WbovwLRk5uK1gGGJjlv+juNEST91aZW gpnojERe/dtUpKdPGCUehWiSqVt/HjbAj9Bgfwsskdgewc8KTrTp8AV3i6RJH8CXu4+y 2AAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jI+7vIyN; 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 h6si25049291iow.71.2021.05.25.19.36.08; Tue, 25 May 2021 19:36:22 -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=jI+7vIyN; 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 S232339AbhEZAWA (ORCPT + 99 others); Tue, 25 May 2021 20:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232320AbhEZAV6 (ORCPT ); Tue, 25 May 2021 20:21:58 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5966AC06175F for ; Tue, 25 May 2021 17:20:27 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id e17so14295634pfl.5 for ; Tue, 25 May 2021 17:20:27 -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=jI+7vIyNOaQc8vv06ucqiOXO34wZA/0HIZF0J/aqwjrz49CNrEKkwEc8eHCFPed1M7 95NyBFbDUtJNriLKuMnJYeYUBw9E9HzvrdY4fts0u79YUExhYaZ/PP4mcb72FpFjz7fd cfzgQulcNLF+90m1B7KueDtJimgucJQDpLkVNAiPdDhmuvJDfV8jE8vN/ri06NACs5QX GDetsvYGApRFbGX8nvk/zG8lW1cgtEOnT1woyhve/gjqa1xIVnEfCyi/25gmhi01jY+4 /WvGG8IEyCS647xDF9sbWoCMHBLWsAiLAeiw2nV1Ru99kRkV07MUXawbaLCBJCSZNqzl F3AA== 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=LqvtTq+aar/UmUCa9of1RYtJuhL7m+VpKwnfuHyCFjzZEmArCgR43N7tofPXqHfKAm KmqcISkiAPlVE5GnDiF4IazkJWR8SEFngBFkOo7u2bvyAXY/MXc5fowTPQ8pm9lqmFr+ rCmgrf38QYbQM2u80XUyGyy5SUZD1Uh5zTjl+HYzM76qv1aQdWuAtentqMu3OXHRb0MU 0yePMdctP4AODTnSnJI+O3L5bhrOGk7DZsHYIFE2QIig/efqml8lCm0f77KECsAhuhaG 5xQvnPP2I0C+6MLe1QKMfkmBfFsn6/QjhcMaKUy2H70/H4nR7mw8I3ZvQGTajAAegHfy E81w== X-Gm-Message-State: AOAM531iAlvxmowLryoLQuY6Fe9IvjZRvQBvrctK2Q4PHC6zXE2AQWyb zPVaoAvhaIGAaC41s6ddYigyqfQSVFxweQ== X-Received: by 2002:aa7:961a:0:b029:2e1:b984:7edf with SMTP id q26-20020aa7961a0000b02902e1b9847edfmr31149899pfg.34.1621988426700; Tue, 25 May 2021 17:20:26 -0700 (PDT) Received: from han1-mobl3.hsd1.or.comcast.net ([2601:1c0:6a01:d830::e853]) by smtp.gmail.com with ESMTPSA id t19sm14305726pfq.116.2021.05.25.17.20.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 17:20:26 -0700 (PDT) From: Tedd Ho-Jeong An To: linux-bluetooth@vger.kernel.org Subject: [BlueZ PATCH 3/4] tools/mgmt-tester: Print hexdump if mgmt event parameters not match Date: Tue, 25 May 2021 17:20:23 -0700 Message-Id: <20210526002024.412237-3-hj.tedd.an@gmail.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210526002024.412237-1-hj.tedd.an@gmail.com> References: <20210526002024.412237-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