Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp22164rdf; Mon, 20 Nov 2023 14:57:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHS1BGnfwDSAfM1Q0tvM50fR5uZo/T/26x+sBuUeXJz4s2CHa286Gfqn3jcW7FAIY6U0OT6 X-Received: by 2002:a05:6a21:788e:b0:187:4118:c0ee with SMTP id bf14-20020a056a21788e00b001874118c0eemr11897760pzc.46.1700521077056; Mon, 20 Nov 2023 14:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700521077; cv=none; d=google.com; s=arc-20160816; b=Mh4KXV/YO/KAfZSw53Xx2MyMyJHB+SfPWNb/Muj5iWF/iWny1bKHKXYukahtRXcCVd xZyxv0AB6ndclbRmelwMwcXAaWEm/Q6w9K/6ZWjwTqo60SRZo9IWfKXDR+NpicCOD8uy Vs4doL1OjYXYuc/hfUWpNivgy5VIZzL9JgqkXF0n1CwaflzK2OIJjR/KRXBGG+A9pABG VbDMaLAuZ/dOcrYbU+OXvx7r8dd0RwPHsn9NqLdKlPhO685C9FFE7PS57xE3LMCCpXcj 8++z5GxBqxSQWE3CrmxBE9OWi5oy9Cq97dNv8dFKufFMZ1NmTopeSQTWuBmTnVlmQmbq 8lBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BWVFW2RnOYhgO1cRQlFLQGYRwK79uUTtHuGNl8l1qxM=; fh=lm9H3pYrtGNbIqugFSdjqyhuXAj/R3eBchMclBKELZI=; b=PhyhBWl8BzyuBVslD3VlAzCk7IbvehMGbkUajT3X/YOpbWq8I6rTD81ubcRXO+B5dR EHuDZ4FAOZPL8o64nDImdUbB+62kmASVMY8hipZDDyJhy6vKbgqiEs9w9NV/C249cXr1 ACvbD+qq8rNtwRGN38a09bR7Jx1vsZb63UIwXtc6wME8/WR3kpVeMAXVdHMok1omagti tb0L73g4vC9PkO+tDCkbkKIk9QwspgdkdrWIRzBu6wAA/3rPRLEYO0hhGjj1ey58tNav O8anlhtfdA0uJzs+4tb5hdu2D7aDml21RLWt+I92JNJmnkx4aiHJbVjgI+FdaDhR9t2P Li1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="lpzjqKY/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p2-20020a63f442000000b005bdfd3a269fsi9250854pgk.581.2023.11.20.14.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 14:57:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="lpzjqKY/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6EB70805FD68; Mon, 20 Nov 2023 14:57:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229825AbjKTW5n (ORCPT + 99 others); Mon, 20 Nov 2023 17:57:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjKTW5m (ORCPT ); Mon, 20 Nov 2023 17:57:42 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C80CC1 for ; Mon, 20 Nov 2023 14:57:39 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-50931d0bb04so1003e87.0 for ; Mon, 20 Nov 2023 14:57:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1700521058; x=1701125858; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BWVFW2RnOYhgO1cRQlFLQGYRwK79uUTtHuGNl8l1qxM=; b=lpzjqKY/mxl0L031w6tixUNcUlgI5OOJ7ka85MYGTYfQ9hGlOrzLY135tPGEyF1/TY lxSt++Si1ULcdQ9fp3hld1J6+xD9hcWJ4P0O58vMgoeQeN3SJ97B7w8+Pr6rHVvOyKsD kqmvr+V85ru1AsZKzCPUyYcTWwamr6mqX1G8QlLiO2X1KC4FuUSm8r/sAxbMwnyGY1sS PXRK5/Bm6ZG8uNXjgqxYuYa+PeaXBhjKa/bbPGt01HvtYfzjB1QpFEqNv/NIVzyumHXf FNVj6vPxnVmUUt0jCK38ZE89VrGUvlBVHy214xonyCfXuH+XRX01qTQsRgnlT/keejCn XV6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700521058; x=1701125858; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BWVFW2RnOYhgO1cRQlFLQGYRwK79uUTtHuGNl8l1qxM=; b=KWqNeujGoHYtRr4pK3FRM2M8wP1veFdXmnRsgUIZEOXIXKlr9nLnRwVNEQ2ts4R651 OUkkcqoXzaNQFFfaGLjW8Fmfu7G1zVByeEKseG6U2wOX4IJJ8HlRjiYBhAw2AcJ7AsNQ wOEl1nx51+zzBSjHNUEwmhYD8c0CIKUSySft7hViBZXKVZeeXFtm/wzO3oZfeY7daS3i d1CGFUpo7ShBtF/o2+YzZk3DqQe7fNV6yLZaeWyELu1wmC8EJbgq3Bn8dqm58KHWpsha G7vOueNgxUBGVTkN910SxRSvpZjl7xllZYQqtTjSPRNsigM+YJ8orIdiROW4SoUZYryG hNqw== X-Gm-Message-State: AOJu0Yxp3bpgJmMD1Yi8B1ASj0DnCVDC5CLT7h82/0inBu+96y1NHJVG FEfJqBGcaJlkMTptBPVsuGJrs6Sq3+4I2q/GuDPW9A== X-Received: by 2002:a05:6512:3743:b0:507:9a37:1483 with SMTP id a3-20020a056512374300b005079a371483mr227375lfs.3.1700521057603; Mon, 20 Nov 2023 14:57:37 -0800 (PST) MIME-Version: 1.0 References: <20231115071109.11511-1-zhujun2@cmss.chinamobile.com> In-Reply-To: <20231115071109.11511-1-zhujun2@cmss.chinamobile.com> From: Ian Rogers Date: Mon, 20 Nov 2023 14:57:26 -0800 Message-ID: Subject: Re: [PATCH] toos:leds: Fix printf format string in uledmon.c To: zhujun2 , david@lechnology.com Cc: acme@kernel.org, ast@kernel.org, namhyung@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 14:57:54 -0800 (PST) Nit in the subject: toos:leds: -> tools/leds: On Tue, Nov 14, 2023 at 11:11=E2=80=AFPM zhujun2 wrote: > > When the argument type is 'int',printf '%d' > in format string.Problem found during code reading. > > Signed-off-by: zhujun2 Reviewed-by: Ian Rogers Thanks, Ian > --- > tools/leds/uledmon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/leds/uledmon.c b/tools/leds/uledmon.c > index c15a39c1f271..62befe06eab5 100644 > --- a/tools/leds/uledmon.c > +++ b/tools/leds/uledmon.c > @@ -55,7 +55,7 @@ int main(int argc, char const *argv[]) > return 1; > } > clock_gettime(CLOCK_MONOTONIC, &ts); > - printf("[%ld.%09ld] %u\n", ts.tv_sec, ts.tv_nsec, brightn= ess); > + printf("[%ld.%09ld] %d\n", ts.tv_sec, ts.tv_nsec, brightn= ess); > } > > close(fd); > -- > 2.17.1 > > >