Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp102754pxf; Tue, 16 Mar 2021 23:57:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSTnbyyfZ8dX0No2NyC/orfOigC8rWZPn5Bt0/j3XP/gDFPgDY58wB29C3UM/fUZkBHYRg X-Received: by 2002:a05:6402:26c9:: with SMTP id x9mr39682710edd.322.1615964234133; Tue, 16 Mar 2021 23:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615964234; cv=none; d=google.com; s=arc-20160816; b=EXr3pMaRF6zXyZwMse9SzE+k8GYDqLtNybhMI218NWVkWUi3Gutgi7aC7VfKJ6OT4u n2K0qM4t5zfkeUkyBaWlSFc6d/mlY3JiQfC4QFf0Or4nqVP4kuPGJUY1ppcj4Cf/LRME Kp91cqQIukkPQoGg/Gx327fGwfvwqeGBjk8xDV3lFTy2y4BQWv3SOHB71LnstObGzh+p xa/eDWOGoElrfG5zpuUjraPiRYVcA7gJerP58gM8OuI4JnAEgLUN22Hywa1Jo1bLBRqe 0FShuw4tT6HbfyVehJ3v8yJ11jrcsouqFrUe/+sVKpLBMouZhsW59ewaESnscjS1N/VM A17w== 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=6StBCK2sKeNyTuk1kSCbfyJqQXg2zhDg9WydesT4oWo=; b=lL4YzKYkFTHau4rj25C3XpR/fRAUln5JZWMkPHmqztlU8cQBeI+Et8aFiRTw++XnTQ BelpBrRF60PUNX8wCyKChEQ0+wEVK5lhy8uNMxZ/RBYZan1QrpOtj831ZuZpg0yQgit1 u4jhZc0nUEK+wczdjac/IXYqj2TYUBht6ixaLLCbkxcxLR98okTeK6LZSISyAMmKJ0Ec ZIkgItgUPVY6mxQg+tu5tYusv91zcfe5PL3JV9rcdgThhzb/z/8zhs0yafDkJ5lKKcIp r5l147r3+zHqnXGangqTD1bJgrfuOawU7emE0TjeoN9PZUSqAvEUIh0mpVxF/fwEIq7x y6vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I1gXoty4; 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 i6si15433674ejk.722.2021.03.16.23.56.51; Tue, 16 Mar 2021 23:57:14 -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=20161025 header.b=I1gXoty4; 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 S230490AbhCQGz2 (ORCPT + 99 others); Wed, 17 Mar 2021 02:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231151AbhCQGyi (ORCPT ); Wed, 17 Mar 2021 02:54:38 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26D0AC06175F for ; Tue, 16 Mar 2021 23:54:27 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id u20so39847862iot.9 for ; Tue, 16 Mar 2021 23:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6StBCK2sKeNyTuk1kSCbfyJqQXg2zhDg9WydesT4oWo=; b=I1gXoty4bpgjbP2ZEZm9H6EAUrPKdKkl2gSknimrwHmki5SfjXRzZLTPexCxbO21TO rmdeOI2qWiImrgnZZsOvCSR8FikrxqiFz7fOoGPEPd3iJXu3RzMR40TrCE+nlhER3J6K ItguXcxhzMKymbFFQ+hOFzJI7wvmYlG7r6L0vIt0CJIX0LLjlZJEYu6FrES3sD5fOzwn wCYQ1Bac3n4RfdLsTvTX0oVm2VyvmPeNe2KUUlN5aGwNff/wE86yn6JZHsv1vuye4BFG pxwiK/ESHGtGNvOWWYIA42m0u2hZNXUlSr1jbUgBirWkeyjHsXM8Yy/wRvF/pwagqrvm 2GMw== 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=6StBCK2sKeNyTuk1kSCbfyJqQXg2zhDg9WydesT4oWo=; b=fA8xic85bpdKqqoU3K5Yn0Ofh6eZ2uUWxqqHA48Jv8S32Kdmp+h7O+pJXkBPeXhKB9 EarWx9zc5IVrYbkCqocv+naaOs2QNQh1u3JFpPMhIZd64DrhlG1GTCYYf5csMYdHia4k +mh+saH+38wrd4wFU5yzHPnLXR7H61L9Q85dXzpbiDl39s4nq/4BxaV6DlvcWSjAU9/a kebJ1xwNlvfBVs2Ale6HvJ8EIFNpWNsyIU2yFOo+2NAnOdQ3dNhicMpTlOf6nJNLUt9G ahqCPFUD1y7OkoPnGtKNjP4ImqWVYY4nMoIDojiH/RmtvdYvUaLt2Z7y5rE8yD4hLG4U ydcA== X-Gm-Message-State: AOAM533ab5AcSpx/yvlzixK/8Pq5V7Plvh2IcUV1wEHuQM3NzK7S6KD5 kM2TXWU621M99hNh1LRXudE= X-Received: by 2002:a05:6638:381c:: with SMTP id i28mr1742630jav.60.1615964066683; Tue, 16 Mar 2021 23:54:26 -0700 (PDT) Received: from frodo.mearth (c-24-9-77-57.hsd1.co.comcast.net. [24.9.77.57]) by smtp.googlemail.com with ESMTPSA id w13sm10583057ilg.48.2021.03.16.23.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 23:54:26 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: Jim Cromie Subject: [RFC PATCH v4 06/19] dyndbg: accept null site in ddebug_change Date: Wed, 17 Mar 2021 00:53:59 -0600 Message-Id: <20210317065412.2890414-7-jim.cromie@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210317065412.2890414-1-jim.cromie@gmail.com> References: <20210317065412.2890414-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 fix a debug-print that includes site info, by adding an alternate debug message that does not. no functional changes. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index abe3382aabd5..151e55ab6bb5 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -235,10 +235,17 @@ static int ddebug_change(const struct ddebug_query *query, static_branch_enable(&dp->key.dd_key_true); #endif dp->flags = newflags; - v2pr_info("changed %s:%d [%s]%s =%s\n", - trim_prefix(dc->filename), dp->lineno, - dt->mod_name, dc->function, - ddebug_describe_flags(dp->flags, &fbuf)); + + if (dc) + v2pr_info("changed %s:%d [%s]%s =%s\n", + trim_prefix(dc->filename), dp->lineno, + dt->mod_name, dc->function, + ddebug_describe_flags(dp->flags, &fbuf)); + else + v2pr_info("changed %s:%d =%s \"%s\"\n", + dt->mod_name, dp->lineno, + ddebug_describe_flags(dp->flags, &fbuf), + dp->format); } } mutex_unlock(&ddebug_lock); -- 2.29.2