[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a60c8e21-28bf-294c-7e3d-612493346bbb@gmail.com>
Date: Fri, 17 May 2019 11:35:16 -0600
From: David Ahern <dsahern@...il.com>
To: Nir Weiner <nir.weiner@...cle.com>, netdev@...r.kernel.org
Cc: liran.alon@...cle.com
Subject: Re: [iproute2 2/3] tc: jsonify tbf qdisc parameters
On 5/6/19 10:18 AM, Nir Weiner wrote:
> if (prate64) {
> - fprintf(f, "peakrate %s ", sprint_rate(prate64, b1));
> + print_string(PRINT_ANY, "peakrate", "peakrate %s ", sprint_rate(prate64, b1));
> if (qopt->mtu || qopt->peakrate.mpu) {
> mtu = tc_calc_xmitsize(prate64, qopt->mtu);
> if (show_details) {
> fprintf(f, "mtu %s/%u mpu %s ", sprint_size(mtu, b1),
> 1<<qopt->peakrate.cell_log, sprint_size(qopt->peakrate.mpu, b2));
The fprintf under show_details should be converted as well. This applies
to patch 1 as well.
And, please add example output to each patch.
Powered by blists - more mailing lists