Messages in this thread | | | Date | Mon, 4 Mar 2024 16:28:20 +0530 | From | Viresh Kumar <> | 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
| |