Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3879457pxb; Wed, 13 Oct 2021 15:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDPebOXAWkThZhHMR6FtMVpsO95bhAfrjOrWJsl75+6fsydXWWwUUHWVtIfzvHi9wvXp1Q X-Received: by 2002:aa7:8149:0:b0:44c:916c:1fdb with SMTP id d9-20020aa78149000000b0044c916c1fdbmr1969068pfn.34.1634163062881; Wed, 13 Oct 2021 15:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634163062; cv=none; d=google.com; s=arc-20160816; b=Jy6yblGCGqSfgi5mR+m4n7UD2yiaZtM8UxADk1LHDy2QRYD3aN+olzusW4TNsJrK3P X6NKhTLuubiihZM2Hroq0W1gA12siXgga/bf7RCDL7MkhCE5lq/0lzJzKzFwV4rxL1St GzUB2TgEn5fmaSBMy9pWjuM9p1y+2MJwpG6gT6aP3hcyE+VfbPRnqkM2LnHYxhZ9a9/u cNjT1v3jZOlLHoZgNIIZy8uQgucyK8KtLRN/NU93LGemlbw2RorZ6fRW5PRmQqawgO5T OzvQfAXpbK4iUEim7goieARtID2Whci5nIBsj1EXy4kkozdirBCDR55nRsb8ZOPgpb4l xVHg== 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:cc:to:from :dkim-signature; bh=ZJf7UOH/EFdpIroNWXJapHbcL/ElBCAxgV8NvOwUt9A=; b=i7UEMrVdLIYbl/NHrlfdfIe9ap/qRJcOxAVrLgA9rFPCHYGIFTjHYNEPzyNopHHW9J e0ZjMwDJFlByu3P3NQKicTrSXzufZkbboc021Hpmk2OGe/bE4aoDwI6m6uzvy+HMhDfF yhUo9iV7sLDGw+C5MTF3CqkygoO9GK4ZgvycEQ3LkHxGLifG44sQUP7xMs7nBj1NafhF XFg9m7WvVYsBFMda8DbkGdYQxFS0wTiq0HKtV5VJg3iqJwDBFGUW2skq+blDdZwiRupX E0hVVw9hpcrvNiDVjUq1jVwgk0gG7lmjEGyWii45Reto2UKGmYuLrMaVuRGOOdO9/U0j 39hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Cw7y/bTO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 h12si1021013pgj.548.2021.10.13.15.10.50; Wed, 13 Oct 2021 15:11:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=20210112 header.b="Cw7y/bTO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S230425AbhJMWKB (ORCPT + 99 others); Wed, 13 Oct 2021 18:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230430AbhJMWJx (ORCPT ); Wed, 13 Oct 2021 18:09:53 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEA69C061769 for ; Wed, 13 Oct 2021 15:07:45 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id r134so1427390iod.11 for ; Wed, 13 Oct 2021 15:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZJf7UOH/EFdpIroNWXJapHbcL/ElBCAxgV8NvOwUt9A=; b=Cw7y/bTOL4pbyIVrB/YkcYOEsgtbThZeazfaY04GcnRBSVV0MkFXHR+43sri5/vK6H 3TEeTGlMhfB9W7US3RPhhEIpYT2S4Ce8uUbr5vFTUjQ+KXYkIm77g1Ky9qM40YCNNCCS QPMIb2jvsJRpc88rK32rDuTjQ3RfvmBtOCqhDhCzKk/6eVtPIE9luVDn+/ppda1CiO3X Juq9j83ZIEBl1g3SiewJFVGahZNLbvOEY737iKw/nR09fEF8xZBzAb7+eFtvHiuE/V6N OuM40N0KH6cbRD3gcDSURRg8r7S6JuBRXvCNOltuh9MOnbGioPrQwqkMX98BVv6CMz3I N3Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZJf7UOH/EFdpIroNWXJapHbcL/ElBCAxgV8NvOwUt9A=; b=uwgciuAGTWsBDCd1PZXBHYOQ055k3okmILeQKyQRLe3x7jvPN/XlkbUseTrD1k9D8R I3+sFRqs7P4g/zJDQR9BFzJjRHYSWIY+dXcD59TCXmR3MT9ghE2OBE1XKImTdNGL/5AW ++cKsCRadq3X+CTyagmXWkIIqkqRZHuR9oonUwv1ZPcTDqX77EDffywbo1BQ7hKOF+Xv 3If2oD3XxIEtm3ZVX+YG+TrRTyLU16DnUcbUHqpMjyBOAHZBiTQhebIze/ILcTiymsEY /daYGyW++PSEOj4dvaV0GC3ejth2p/wnVbOgaYX7w5+TWIZMgrjrZUzDmflOzLShtFE4 fIbA== X-Gm-Message-State: AOAM531D6GhVFxRELYQ5UIEyEtjpVGGpVJVcK49JnydvsZOiMuEgdGIc A0SpFlYSq8W2XJ+pZFvg/uk= X-Received: by 2002:a6b:f816:: with SMTP id o22mr1536241ioh.106.1634162858111; Wed, 13 Oct 2021 15:07:38 -0700 (PDT) Received: from samwise.. (c-24-9-77-57.hsd1.co.comcast.net. [24.9.77.57]) by smtp.googlemail.com with ESMTPSA id i15sm324633ilb.30.2021.10.13.15.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 15:07:37 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: Jim Cromie Subject: [PATCH 3/3] dyndbg: no vpr-info on empty queries Date: Wed, 13 Oct 2021 16:07:26 -0600 Message-Id: <20211013220726.1280565-4-jim.cromie@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211013220726.1280565-1-jim.cromie@gmail.com> References: <20211013220726.1280565-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org when `echo $cmd > control` contains multiple queries, extra query separators (;\n) can parse as empty statements. This is normal, and a vpr-info on an empty command is just noise. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index bc1ac55ac328..7744c787e256 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -540,8 +540,10 @@ static int ddebug_exec_queries(char *query, const char *modname) } i++; } - vpr_info("processed %d queries, with %d matches, %d errs\n", - i, nfound, errs); + + if (i) + vpr_info("processed %d queries, with %d matches, %d errs\n", + i, nfound, errs); if (exitcode) return exitcode; -- 2.31.1