[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240304105820.urasbqh7gtiwt2o3@vireshk-i7>
Date: Mon, 4 Mar 2024 16:28:20 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Dhruva Gole <d-gole@...com>
Cc: Viresh Kumar <vireshk@...nel.org>, Nishanth Menon <nm@...com>,
Stephen Boyd <sboyd@...nel.org>, linux-pm@...r.kernel.org,
Vincent Guittot <vincent.guittot@...aro.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
kernel test robot <lkp@...el.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] OPP: debugfs: Fix warning with W=1 builds
On 04-03-24, 13:12, Dhruva Gole wrote:
> I'd rather we use malloc
The problem is that we don't know the length of the string here and we
don't want to hardcode the number of clks, regulators, etc.
> or else change the limits of the
> "rate_hz_%d" to "rate_hz_%4d" or how many ever digits makes sense.
That will not work I am afraid. This works as you intend to for %s,
but not for %d. With %Nd, N only signifies the minimum space the value
will take.
Let me make it better anyway, will try something.
--
viresh
Powered by blists - more mailing lists