All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] iperf: fix "speed" display in CSV report
@ 2016-07-28 16:59 Matt Weber
  2016-07-28 17:46 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Weber @ 2016-07-28 16:59 UTC (permalink / raw)
  To: buildroot

From: Atul Singh <atul.singh.mandla@rockwellcollins.com>

Some parameters displayed in the CSV reports are declared
as uint64_t, but the printf format doesn't reflect this.

Submitted bug: https://sourceforge.net/p/iperf/bugs/66/

Signed-off-by: Atul Singh <atul.singh.mandla@rockwellcollins.com>
Signed-off-by: Matt Poduska <matt.poduska@rockwellcollins.com>
---

v1 -> v2
[Matt W
 - Fixed Atul's signed off line

Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
---
 .../0001-fix-speed-display-in-csv-report.patch     | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 package/iperf/0001-fix-speed-display-in-csv-report.patch

diff --git a/package/iperf/0001-fix-speed-display-in-csv-report.patch b/package/iperf/0001-fix-speed-display-in-csv-report.patch
new file mode 100644
index 0000000..27d89bf
--- /dev/null
+++ b/package/iperf/0001-fix-speed-display-in-csv-report.patch
@@ -0,0 +1,36 @@
+From 36c098a4fec0fdcb7c3df4909322f88b07bd6b01 Mon Sep 17 00:00:00 2001
+From: Atul Singh <atul.singh.mandla@rockwellcollins.com>
+Date: Wed, 27 Jul 2016 07:36:34 -0500
+Subject: [PATCH] iperf: Fix "speed" display in CSV report
+
+Some parameters displayed in the CSV reports are declared
+as uint64_t, but the printf format doesn't reflect this.
+
+Bugtracker: https://sourceforge.net/p/iperf/bugs/66/
+
+Signed-off-by: Atul Singh <atul.singh.mandla@rockwellcollins.com>
+
+---
+ src/Locale.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Locale.c b/src/Locale.c
+index b5d42b1..d80a77a 100644
+--- a/src/Locale.c
++++ b/src/Locale.c
+@@ -261,10 +261,10 @@ const char reportCSV_bw_jitter_loss_format[] =
+ "%s,%s,%d,%.1f-%.1f,%I64d,%I64d,%.3f,%d,%d,%.3f,%d\n";
+ #else
+ const char reportCSV_bw_format[] =
+-"%s,%s,%d,%.1f-%.1f,%d,%d\n";
++"%s,%s,%d,%.1f-%.1f,%lld,%lld\n";
+ 
+ const char reportCSV_bw_jitter_loss_format[] =
+-"%s,%s,%d,%.1f-%.1f,%d,%d,%.3f,%d,%d,%.3f,%d\n";
++"%s,%s,%d,%.1f-%.1f,%lld,%lld,%.3f,%d,%d,%.3f,%d\n";
+ #endif //WIN32
+ #endif //HAVE_QUAD_SUPPORT
+ /* -------------------------------------------------------------------
+-- 
+1.9.1
+
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2] iperf: fix "speed" display in CSV report
  2016-07-28 16:59 [Buildroot] [PATCH v2] iperf: fix "speed" display in CSV report Matt Weber
@ 2016-07-28 17:46 ` Khem Raj
  2016-07-28 21:35   ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2016-07-28 17:46 UTC (permalink / raw)
  To: buildroot


> On Jul 28, 2016, at 9:59 AM, Matt Weber <matthew.weber@rockwellcollins.com> wrote:
> 
> From: Atul Singh <atul.singh.mandla@rockwellcollins.com>
> 
> Some parameters displayed in the CSV reports are declared
> as uint64_t, but the printf format doesn't reflect this.
> 
> Submitted bug: https://sourceforge.net/p/iperf/bugs/66/
> 
> Signed-off-by: Atul Singh <atul.singh.mandla@rockwellcollins.com>
> Signed-off-by: Matt Poduska <matt.poduska@rockwellcollins.com>
> ---
> 
> v1 -> v2
> [Matt W
> - Fixed Atul's signed off line
> 
> Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
> ---
> .../0001-fix-speed-display-in-csv-report.patch     | 36 ++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/iperf/0001-fix-speed-display-in-csv-report.patch
> 
> diff --git a/package/iperf/0001-fix-speed-display-in-csv-report.patch b/package/iperf/0001-fix-speed-display-in-csv-report.patch
> new file mode 100644
> index 0000000..27d89bf
> --- /dev/null
> +++ b/package/iperf/0001-fix-speed-display-in-csv-report.patch
> @@ -0,0 +1,36 @@
> +From 36c098a4fec0fdcb7c3df4909322f88b07bd6b01 Mon Sep 17 00:00:00 2001
> +From: Atul Singh <atul.singh.mandla@rockwellcollins.com>
> +Date: Wed, 27 Jul 2016 07:36:34 -0500
> +Subject: [PATCH] iperf: Fix "speed" display in CSV report
> +
> +Some parameters displayed in the CSV reports are declared
> +as uint64_t, but the printf format doesn't reflect this.
> +
> +Bugtracker: https://sourceforge.net/p/iperf/bugs/66/
> +
> +Signed-off-by: Atul Singh <atul.singh.mandla@rockwellcollins.com>
> +
> +---
> + src/Locale.c | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/src/Locale.c b/src/Locale.c
> +index b5d42b1..d80a77a 100644
> +--- a/src/Locale.c
> ++++ b/src/Locale.c
> +@@ -261,10 +261,10 @@ const char reportCSV_bw_jitter_loss_format[] =
> + "%s,%s,%d,%.1f-%.1f,%I64d,%I64d,%.3f,%d,%d,%.3f,%d\n";
> + #else
> + const char reportCSV_bw_format[] =
> +-"%s,%s,%d,%.1f-%.1f,%d,%d\n";
> ++"%s,%s,%d,%.1f-%.1f,%lld,%lld\n?;

c99 says if you are printing uint64_t then its portable to use PRIu64 e.g.

uint64_t a_int64
printf("%" PRId64 "\n?, a_int64);


> +
> + const char reportCSV_bw_jitter_loss_format[] =
> +-"%s,%s,%d,%.1f-%.1f,%d,%d,%.3f,%d,%d,%.3f,%d\n";
> ++"%s,%s,%d,%.1f-%.1f,%lld,%lld,%.3f,%d,%d,%.3f,%d\n";
> + #endif //WIN32
> + #endif //HAVE_QUAD_SUPPORT
> + /* -------------------------------------------------------------------
> +--
> +1.9.1
> +
> --
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160728/1240c424/attachment.asc>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2] iperf: fix "speed" display in CSV report
  2016-07-28 17:46 ` Khem Raj
@ 2016-07-28 21:35   ` Thomas Petazzoni
  2016-07-28 23:18     ` Matthew Weber
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2016-07-28 21:35 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 28 Jul 2016 10:46:44 -0700, Khem Raj wrote:

> c99 says if you are printing uint64_t then its portable to use PRIu64 e.g.
> 
> uint64_t a_int64
> printf("%" PRId64 "\n?, a_int64);

Indeed. Matt, could you rework your patch accordingly?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2] iperf: fix "speed" display in CSV report
  2016-07-28 21:35   ` Thomas Petazzoni
@ 2016-07-28 23:18     ` Matthew Weber
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Weber @ 2016-07-28 23:18 UTC (permalink / raw)
  To: buildroot

All,

On Thu, Jul 28, 2016 at 4:35 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> On Thu, 28 Jul 2016 10:46:44 -0700, Khem Raj wrote:
>
>> c99 says if you are printing uint64_t then its portable to use PRIu64 e.g.
>>
>> uint64_t a_int64
>> printf("%" PRId64 "\n?, a_int64);
>
> Indeed. Matt, could you rework your patch accordingly?
>

Sure.

-- 
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com

Note: Any Export License Required Information and License Restricted
Third Party Intellectual Property (TPIP) content must be encrypted and
sent to matthew.weber at corp.rockwellcollins.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-28 23:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-28 16:59 [Buildroot] [PATCH v2] iperf: fix "speed" display in CSV report Matt Weber
2016-07-28 17:46 ` Khem Raj
2016-07-28 21:35   ` Thomas Petazzoni
2016-07-28 23:18     ` Matthew Weber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.