From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 BFE9627464F for ; Sun, 28 Dec 2025 19:34:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766950477; cv=none; b=say2JPsWvbR/gDVgPGFc9fxRFtGdSC/kHw68vt/e1w2WTszlmFqUOPCKDJy0+JQhAumrK4H3RoAGNyw5GtDVc5qghSHO3Agtf3N1qip77OukbvHHNSz3fhHKsMpxQ9jtfhyEKBGOMXFlwKVrjDAicR4SS2A8IgX15L8Z3aAvaLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766950477; c=relaxed/simple; bh=MvgwSe2uuAnSoqmyj7Z6BxaI7PVqfjMSmemWw9nwZVI=; h=From:In-Reply-To:References:MIME-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=kPQsCeUYkU87l4dkeELQ8kEQGqsm2uNBz6JLY47HcNn5r36QAMY5U+QRA20cAdDreCfcA4zV461HzKNLHiDNnq/7UKDAJHtJ+0w1D2BmwjgkcswyadadXMPsQAGrMJffpZyu3PtLqj8zE9EI6fhe7+iGs13ljpm+b7x28wGF5hQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZnWapcZS; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZnWapcZS" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-38107fadda2so64140351fa.1 for ; Sun, 28 Dec 2025 11:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766950474; x=1767555274; darn=vger.kernel.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=a8pEOxCzRMteaLHsxGxdhMSLmiiDxpU7yALXLsW+y30=; b=ZnWapcZSYqWxVlMJM+zbojFyY9+VJQ/6coJVjfGBp0rWqX8o1e/9KhtqqoQF+FNJz7 /4xyZnhrdXCKJb8NH098whg1eDpb0Z0+CvIHsLOQ39nfG+XwztVfj6kEpIRGatkuuZVo KBCq+siMYzQGYYjv39ScG1C8WPeaSvo2S6/6+IGfXwJGFJywUllBrNdeoWnfeHRFnJd4 IYZNzgBlHfxypCVhN7/crtuPmmTCZ31vMytEPnRqeSuTmD/Sef6ENhGq+aOA2BLye06N dItuSEf7rE+AvGgxcfdJkSKnJpNG0kjp32e9lQb4nQg2AIU56tcxVNBDEPgYTVrDzBmH 0x4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766950474; x=1767555274; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a8pEOxCzRMteaLHsxGxdhMSLmiiDxpU7yALXLsW+y30=; b=OnVFwh3wxjU6QKS2Wq+4bAuAopuql76/vRANtIpoJsywuT2R/nv1VVqMke4hmmlG0b +ZiEB1ijiX8S4fPxEDza3C5yKoCGr04Tbgz5GPUEETaK/hRt9HEmO3r94v1pNEl94Jkt 3k+8ozdCF4nzlcVE9b+wxPeLHl/u0739WD1BQOhfe2abKhrP/1MlxqW4N/MiQyn5GlMj 6d42qcth8Kh9D5Bau+D/d1tLcTumTncYqNUa/4vIs2AKvTk8RGsL+I8ZkL8cFrI8utIt 5y+W7y+rsZnz2yKsiXZvuFT2wvA22IWGXnaf6lgEPp1nY2Qbsx29CjIJvIU4DdQLskMm 0yDw== X-Forwarded-Encrypted: i=1; AJvYcCVzLGIYHwYuuOpTs1eIitRTpEONU49Km7yeLwvVrDyE/8RkI0eRoAGM/KeakeMd/tfeKPgsmxg2XoI=@vger.kernel.org X-Gm-Message-State: AOJu0Yzm8kbFlITOCYekm3lgg3JdaXMlcYzXX3eEDsFfTtVwwhlUGxg4 wiUW44vkcEPFYgTtIdyvkpGjNUduRKtvt7uvRn39RPdSGG4VDcMauX0rri+kXspqn1UMjdXvwDS TLO9keo3I3+NUxIJmmkAflKywZ5e15Go= X-Gm-Gg: AY/fxX7j0sB7VDGm/KI969wrwQUumW0/iWWaz5J/q9aiWc5pZORVXtGY6MWcaWJ/hQc OiPJbA/dINlez7k1Rj6Pctp2ZLA0+oqd6KSwii6qUbNlSZ45aFVPL028VId/ETAqdqn0/8c9+Ly 9NYFIb5Xduj6dGlawpeydQKS6+i9t9yv+0Y/psWI+0xVwNuCURSI/1VqPrukFXDo3T5Fxrxkxka xTzgnViOCiQskXm79XGTeNVS1flHaqp5YxdMN4avbFzsObBWKl9CjUp7FzXzfiFu5XgwviDcKWK gpNQ X-Google-Smtp-Source: AGHT+IGYAk4bMC2/pjRyf6BIqHe37o2OjVDQ/0bsuMuggkYk5wBNyeDmOFTnDfYXXJt0JphRJESJESf5hh8Xzq6T57k= X-Received: by 2002:a05:651c:b12:b0:37a:432f:8ecc with SMTP id 38308e7fff4ca-381216724dcmr100753891fa.33.1766950473729; Sun, 28 Dec 2025 11:34:33 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 28 Dec 2025 11:34:33 -0800 Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 28 Dec 2025 11:34:33 -0800 From: Benjamin Philip X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251228193417.1143676-1-benjamin.philip495@gmail.com> References: <20251228193417.1143676-1-benjamin.philip495@gmail.com> Precedence: bulk X-Mailing-List: workflows@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Sun, 28 Dec 2025 11:34:33 -0800 X-Gm-Features: AQt7F2q_dd-58TCGjgqYM9cgx9poXOmTJX0Lk9ORVlxtpuuk3E7dr9mn5Pabj2A Message-ID: Subject: [PATCH 2/3] scripts: coccicheck: warn on unset debug file To: Julia Lawall , Nicolas Palix , Jonathan Corbet Cc: cocci@inria.fr, workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Philip Content-Type: text/plain; charset="UTF-8" coccicheck prints debug logs to stdout unless a debug file has been set. This makes it hard to read coccinelle's suggested changes, especially for someone new to coccicheck. >From this commit, we warn about this behaviour from within the script on an unset debug file. Explicitly setting the debug file to /dev/null suppresses the warning while keeping the default. Signed-off-by: Benjamin Philip --- scripts/coccicheck | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/coccicheck b/scripts/coccicheck index 2efb74afef2b..8dd766009de1 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -260,6 +260,11 @@ coccinelle () { } if [ "$DEBUG_FILE" = "" ]; then + echo 'You have not explicitly specified the debug file to use.' + echo 'Using default "/dev/null" as debug file.' + echo 'Debug logs will be printed to stdout.' + echo 'You can specify the debug file with "make coccicheck DEBUG_FILE="' + echo '' DEBUG_FILE="/dev/null" fi -- 2.52.0