Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1162782rdb; Fri, 22 Dec 2023 17:56:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQkyTokZASFXnyIQBDNuxJqe0LN3+Qsh+OymvbOgT/O0ByvKlVLzMNbUWHaXUCm6tZ26bz X-Received: by 2002:a05:6214:f6a:b0:67f:51be:e3bc with SMTP id iy10-20020a0562140f6a00b0067f51bee3bcmr3934386qvb.17.1703296568451; Fri, 22 Dec 2023 17:56:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703296568; cv=none; d=google.com; s=arc-20160816; b=ROxi0DgO6TorSLhqVMF2z/bomcscwnox78eB/2bUfFMbQhPKZOCt1hwVLsPQhtFxUK oKzDs2t+P/YEm3RQCpu2YvuYVtaaPgH9MrGCxzfoT6sog3wJ5KEGOQe4DCG13Lc3Gmpy zN2Zgn+7QLWohd2f5YC+fXPDUDKmnO6bTh31mkQN2a5RdeJEWUbLOe2TfJYkqH7NyRzp VoR2j75XVGToLqpHclbVbL3DWey5dhFrblFcaq84v552wz2KESQvbSR6oap9OPfdY+GG et0z2KLhy7flPKScgwM8CAMfCI/56/9O9W+ZXBetR83mTALHctATYI2NpP6ziXX1LpaU zQ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=HVR31l7ssYBc2uqfncVW1jfnriW+pqUwixAY72YDu48=; fh=pC62+Xzu9rWxP3EwkFQHy3M37dHcdVo9RRC56IjE3s4=; b=utOXOkrl4gi2PqI0X8/DCmY6nYvAqpaf8KC1jdUm/PSwqGMStZnv/y1H8gO/fbEJT+ 6S2QokGGk9B44XRSfaWeWNe4+hHE59s99FanGBY0KkvfZPRKIaOXQS1t7ec05+Ift7D3 wEK4AUdpUxuQmHpR637NLwn+1DJEDOeLZrlVPudUGFnsI/o4dPSj4YVjfmkxWX8Mzmvb uR5m16KxuvyfTFZqLQ+KLT3ZPpZZcAAYRW3jFTAlB+A+zZjuFft7IWrmUkJWj9bYH8t2 GneZxRVZVQGp3xbCLuxfCJoej6qZEkxLS6rnp+asm8H3PSE4aiGCXnxA8IXiMlWIj31l ThxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=eYIHZuK9; spf=pass (google.com: domain of linux-kernel+bounces-10176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10176-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w26-20020ae9e51a000000b0077f6ff8724asi5222143qkf.562.2023.12.22.17.56.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 17:56:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=eYIHZuK9; spf=pass (google.com: domain of linux-kernel+bounces-10176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10176-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 396201C20F6A for ; Sat, 23 Dec 2023 01:56:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3BAE1D52D; Sat, 23 Dec 2023 01:52:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=semihalf.com header.i=@semihalf.com header.b="eYIHZuK9" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94AA914F6F for ; Sat, 23 Dec 2023 01:52:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=semihalf.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=semihalf.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-55359dc0290so4165410a12.1 for ; Fri, 22 Dec 2023 17:52:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; t=1703296337; x=1703901137; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HVR31l7ssYBc2uqfncVW1jfnriW+pqUwixAY72YDu48=; b=eYIHZuK93oRaumjAVjIPWlgGSgMCVkmxLW7mBNcwneImcuN230ZPegGYi9eTEFS6NT tjUXKn8UnRow/NR9BT1xSjAG8lftWhA3YIstrIBnpM9+WJJWNAo4H/kEzIAfQ1yPlK1S OwTrcLRnUWQTZwVBXXleEcqXXq0Lpz2ZT1zqED/nitymDb2UgdYcUB7lXZMcM0ZjLfQT G0ld9JqW6y5GIgst/L2379z9HqjvdaKE3oHvuFvn1XNlQdUnd/QOEmNlLP7Ri0P4ZFVy isDu5x0/tW6sEl9Q0ydQQNN2Yfs0SnUely5JeRZqweZNzDTMZriAPAIJyMifPzc8tzGX l9Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703296337; x=1703901137; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HVR31l7ssYBc2uqfncVW1jfnriW+pqUwixAY72YDu48=; b=djhKcjq3j3fSmOMuHlE4gVoKIMmu3YOL8Jx07XcJ1o0LHxBAuT5zacdckpv7qFdK/I Eqn6IkD7ptWDfTfCFWbMgp7ColAV5M5N6yIXufz2OPWz9ME+OZxNB/XpdoHHZMvf3NdP bh+yFIQrCEzeWUBW35h3joGQtPer0P/Mn7siBXW9QVxH8nSw9uWK4uVmofHudK9biMNr DHQVQTFgVW3BknK0P7RLoSUT3ZWu7cuh4oSIoIjH6cevy22QzxLPZu/4F7zOsBKJiQxn JQT1v/M0M9kqQR+1gwBeFXViS5SioyrCKk49sWVLyqPYn32xlwygcMLyepb+3YY3nyJp 7jkg== X-Gm-Message-State: AOJu0Yywdt0NsqubYaBlpIdJ/XnZi9pTRoXlZ7OTtq79N8Dui6OYDwnD CT5LthQnu4qC34HRQrFuvpWRjEhiPxTM X-Received: by 2002:a50:9313:0:b0:554:4bb2:9a6e with SMTP id m19-20020a509313000000b005544bb29a6emr2531314eda.11.1703296337057; Fri, 22 Dec 2023 17:52:17 -0800 (PST) Received: from ukaszb-l.semihalf.net (alfa56.extreme-net.one.pl. [213.77.89.56]) by smtp.gmail.com with ESMTPSA id h2-20020a0564020e8200b005532a337d51sm3288494eda.44.2023.12.22.17.52.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 17:52:16 -0800 (PST) From: =?UTF-8?q?=C5=81ukasz=20Bartosik?= To: Jason Baron , Jim Cromie , Andrew Morton , Kees Cook , Douglas Anderson Cc: Guenter Roeck , Yaniv Tzoreff , Benson Leung , Steven Rostedt , Vincent Whitchurch , Pekka Paalanen , Sean Paul , Daniel Vetter , Simon Ser , John Ogness , Petr Mladek , Sergey Senozhatsky , linux-kernel@vger.kernel.org, upstream@semihalf.com Subject: [PATCH v3 16/22] dyndbg: disambiguate quoting in a debug msg Date: Sat, 23 Dec 2023 02:51:25 +0100 Message-ID: <20231223015131.2836090-17-lb@semihalf.com> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231223015131.2836090-1-lb@semihalf.com> References: <20231223015131.2836090-1-lb@semihalf.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jim Cromie When debugging a query parsing error, the debug message wraps the query in escaped-double-quotes. This is confusing when mixed with any quoted args where quotes are stripped by the shell. So this replaces the \"%s\" with <%s> in the format string, allowing a user to see how the shell strips quotes: lx]# echo module "foo" format ,_ -f > /proc/dynamic_debug/control [ 716.037430] dyndbg: read 26 bytes from userspace [ 716.037966] dyndbg: query 0: on module: <*> Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 65dafdec7b76..8ce485fc84ff 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -955,7 +955,7 @@ static int ddebug_exec_queries(char *query, const char *modname) if (!query || !*query || *query == '#') continue; - vpr_info("query %d: \"%s\" mod:%s\n", i, query, modname ?: "*"); + vpr_info("query %d: <%s> on module: <%s>\n", i, query, modname ?: "*"); rc = ddebug_exec_query(query, modname); if (rc < 0) { -- 2.43.0.472.g3155946c3a-goog