Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1421232pxj; Sat, 29 May 2021 13:03:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQPFlwRlGoJZlrbHG33ZsEjb0j1hPebTvBnWA6XdlXs0QU+6201XQi97IWXh2/1dy5hqmi X-Received: by 2002:a92:d810:: with SMTP id y16mr6796845ilm.14.1622318633977; Sat, 29 May 2021 13:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622318633; cv=none; d=google.com; s=arc-20160816; b=bfMFordWYxoH8gdiECJpRU9Btv8316OSrU1qhb/Piv7LUcQctTH0HWatzyIBDr4dOb j2QONgUqpNQcJRsiISPdYO8U91R9iS/s7cLP/3JBfL83LVgYfsIj3FoLTDKF0VGjbQCV Zh4Kn0niyEzPjGdVrpjy6KOrkSv5ztK5ObTGbi457iSXWtGeCHzANtITJ1FlrRjBo1Cy ed9wdWum7O2ESrurbxAxsbZSQLC8sPcFizSkJQXoI2metWDFslNzBHgFdbMv02nzCiY+ oGKKdoVyr4VTptqEvPwfol2IvUD4hH6FHV3+N2DeF835ZqEkH8scCEn9HBtr5eyIdOR/ gyXw== 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=P+ejOKG5S1i8FowLBXnyA6cfXFOfEuMSLPIIumnhzJA=; b=ykcG1UML4I/eyZBq24Musyde79u/x1q+9vN40klNCThX1AejWXe/RybuTiq+INEwtZ 6t2t9+0Wls4JSbTGFGPVIFIep6c5MpG4Q7owJkpGdYUdiKKYKkrNzrKRGHX+Kv+ksBB+ TrjvX1L5NY4ouM5SAZN7Ezv44fqDnB5fjpB6EgMETe8OTIoZ5QqLwVIcEK0cKpu+Pb1f SNQrnXxDteLXG7mfsO1l0l8Q0HD9bznPbgsM3xkCAqNVlaxb0BVCttS//QupPnlD9ufU FQz+0/Ljh/+UOS8clIoU237fSTJrIYlVkvmjMzgeMOVv7BXKlMuWqR3bnyfAaoIIfJbD paJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fDpd8K+N; 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 n8si9555789jam.34.2021.05.29.13.03.33; Sat, 29 May 2021 13:03:53 -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=fDpd8K+N; 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 S229956AbhE2UES (ORCPT + 99 others); Sat, 29 May 2021 16:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbhE2UEB (ORCPT ); Sat, 29 May 2021 16:04:01 -0400 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36512C061574 for ; Sat, 29 May 2021 13:02:24 -0700 (PDT) Received: by mail-ot1-x333.google.com with SMTP id 36-20020a9d0ba70000b02902e0a0a8fe36so6980159oth.8 for ; Sat, 29 May 2021 13:02:24 -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=P+ejOKG5S1i8FowLBXnyA6cfXFOfEuMSLPIIumnhzJA=; b=fDpd8K+N8M7WbgA9Uax4+y/IYc5c61ZRiWe1e5vKveChe67ckrO8K3jPwt35wn63qQ xUbQ637Y4UwN4yNy+3lIGF8uednU5YiFayx0aacFvEb/beOrYod0pHDZ6LsLAKynTba+ 8j1jEHj8wZWOdHYYkl3W85uJEOzFqqA91AXkb1kRV+24RJdQACgufuPSb2379tZ0XZq5 T3xiTCYbbs4w3MAQQkXnvk1oPG9qhdywkjj2y2G0Tu8xy3z0dD4q+E0FyrOSsNEAbh41 oP3WK1JB0Fef0w+cwm6rHH2Q5+W6IgsRu5XzvfRYQZQMEc8QEAgQGZg1gWdP5gBfg2Tc AAWQ== 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=P+ejOKG5S1i8FowLBXnyA6cfXFOfEuMSLPIIumnhzJA=; b=JH40bZdCt1VPVU2jLBJh49VOqP4LNzYjsImcoqSuXtKbH5jW3ZXzR143hhYc1sS4/m PF9nFRbD+PgGzk9JVeo5clyOxWirk2fLJEwmURP9rc0uQPIvPlPlex2EIrbsZN+o5tJw FN40w/VxxISdG1/xYayGvfvy6Ig3HwyhRXvdVtHjKH+inUhyIk3LC2SBOH1n86NTccWh LTbfc38m4RlR/ZSsddkJq6TgiTPycMQ8nAFsCPIxDyf1MBAeF1ooia7FhP5bIPnx+YJI F0B/2SRTyTrtuNatc+0hf9/j10+FTEnJnwHyk7JYo2LJ5C+61og9taeweRSZaGY6nJqx bzVA== X-Gm-Message-State: AOAM532t8Z8gAInfMuOZDCWeaUfPr+mL44UmcRTLT9QMVv3SvA8qt+1/ wk7dgVn5Fg1Q0zngfUxZD7vzY2VZhaINmg== X-Received: by 2002:a05:6830:14d:: with SMTP id j13mr11582817otp.232.1622318543629; Sat, 29 May 2021 13:02:23 -0700 (PDT) Received: from frodo.. (c-24-9-77-57.hsd1.co.comcast.net. [24.9.77.57]) by smtp.googlemail.com with ESMTPSA id t39sm1868064ooi.42.2021.05.29.13.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 May 2021 13:02:23 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: Jim Cromie Subject: [RFC PATCH v6 10/34] dyndbg: accept null site in ddebug_change Date: Sat, 29 May 2021 14:00:05 -0600 Message-Id: <20210529200029.205306-11-jim.cromie@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210529200029.205306-1-jim.cromie@gmail.com> References: <20210529200029.205306-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 e40ce438636a..b2fd7c181bd5 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -236,10 +236,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.31.1