iperf: fix "speed" display in csv report
PATCH v4 1/1 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.
Submitted bug: https://sourceforge.net/p/iperf/bugs/66/
---
v1 -> v2
[Matt W
- Fixed Atul's signed off line
v2 -> v3
[Khem
- Use c99 standard PRIu64
v3 -> v4
[Khem
- Fix bad patch, was reversed
--- .../0001-fix-speed-display-in-csv-report.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/iperf/0001-fix-speed-display-in-csv-report.patch
package/iperf/0001-fix-speed-display-in-csv-report.patch new file +39 -0
@@ -0,0 +1,39 @@ +From f035e70b72d4285dcdbd393e680777a927cb9da4 Mon Sep 17 00:00:00 2001 +From: Matt Weber <[email protected]> +Date: Thu, 28 Jul 2016 19:04:01 -0500 +Subject: [PATCH] perf: 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. + +Submitted bug: https://sourceforge.net/p/iperf/bugs/66/ + +Signed-off-by: Matt Poduska <[email protected]> +Signed-off-by: Atul Singh <[email protected]> +Signed-off-by: Matthew Weber <[email protected]> +--- + src/Locale.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/Locale.c b/src/Locale.c +index b5d42b1..7b924fa 100644 +--- a/src/Locale.c ++++ b/src/Locale.c +@@ -260,11 +260,12 @@ const char reportCSV_bw_format[] = + const char reportCSV_bw_jitter_loss_format[] = + "%s,%s,%d,%.1f-%.1f,%I64d,%I64d,%.3f,%d,%d,%.3f,%d\n"; + #else ++#include "inttypes.h" + const char reportCSV_bw_format[] = +-"%s,%s,%d,%.1f-%.1f,%d,%d\n"; ++"%s,%s,%d,%.1f-%.1f,%" PRId64 ",%" PRId64 "\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,%" PRId64 ",%" PRId64 ",%.3f,%d,%d,%.3f,%d\n"; + #endif //WIN32 + #endif //HAVE_QUAD_SUPPORT + /* ------------------------------------------------------------------- +-- +1.9.1 +
Signature · 1 line
1.9.1
PATCH v4 1/1 iperf: fix "speed" display in csv report
Quoted 17 lines · Matt Weber
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 Matt Poduska <[email protected]>Signed-off-by Atul Singh <[email protected]>Signed-off-by Matt Weber <[email protected]>---
v1 -> v2
[Matt W
- Fixed Atul's signed off line
Quoted 7 lines
v2 -> v3
[Khem
- Use c99 standard PRIu64v3 -> v4
[Khem
- Fix bad patch, was reversed
Looks good now
Quoted 53 lines
---
.../0001-fix-speed-display-in-csv-report.patch| 39 ++++++++++++++++++++++1 file changed, 39 insertions(+)create mode 100644
package/iperf/0001-fix-speed-display-in-csv-report.patchpackage/iperf/0001-fix-speed-display-in-csv-report.patch new file +39
-1@@ -0,0 +1,39 @@ +From f035e70b72d4285dcdbd393e680777a927cb9da4 Mon Sep 17 00:00:00 2001 +From: Matt Weber <[email protected]> +Date: Thu, 28 Jul 2016 19:04:01 -0500 +Subject: [PATCH] perf: 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. + +Submitted bug: https://sourceforge.net/p/iperf/bugs/66/ + +Signed-off-by: Matt Poduska <[email protected]> +Signed-off-by: Atul Singh <[email protected]> +Signed-off-by: Matthew Weber <[email protected]> +--- + src/Locale.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/Locale.c b/src/Locale.c +index b5d42b1..7b924fa 100644 +--- a/src/Locale.c ++++ b/src/Locale.c +@@ -260,11 +260,12 @@ const char reportCSV_bw_format[] = + const char reportCSV_bw_jitter_loss_format[] = + "%s,%s,%d,%.1f-%.1f,%I64d,%I64d,%.3f,%d,%d,%.3f,%d\n"; + #else ++#include "inttypes.h" + const char reportCSV_bw_format[] = +-"%s,%s,%d,%.1f-%.1f,%d,%d\n"; ++"%s,%s,%d,%.1f-%.1f,%" PRId64 ",%" PRId64 "\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,%" PRId64 ",%" PRId64 ",%.3f,%d,%d,%.3f,%d\n"; + #endif //WIN32 + #endif //HAVE_QUAD_SUPPORT + /* ------------------------------------------------------------------- +-- +1.9.1 + --1.9.1
Quoted 4 lines
_______________________________________________
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/5e776aa7/attachment.asc>
PATCH v4 1/1 iperf: fix "speed" display in csv report
In reply to Matt WeberHello,
Quoted 9 lines · Matt Weber
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 Matt Poduska <[email protected]>Signed-off-by Atul Singh <[email protected]>Signed-off-by Matt Weber <[email protected]>---
Applied to master, thanks. Could you send the patch to the upstream project at https://sourceforge.net/projects/iperf2/. Note: this is a different upstream than the one you submitted the patch. The one to which you submitted the patch seems to no longer be active. iperf2 is active, and has made a release in June 2016.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v4 1/1 iperf: fix "speed" display in csv report
Thomas,
Quoted 14 lines · Thomas Petazzoni
Hello,
Quoted 9 lines · Matt Weber
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 Matt Poduska <[email protected]>Signed-off-by Atul Singh <[email protected]>Signed-off-by Matt Weber <[email protected]>---
Quoted 5 lines
Applied to master, thanks. Could you send the patch to the upstream project at https://sourceforge.net/projects/iperf2/. Note: this is a different upstream than the one you submitted the patch. The one to which you submitted the patch seems to no longer be active. iperf2 is active, and has made a release in June 2016.
Will do, thank you for the note!
Quoted 8 lines
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160730/c921de01/attachment.html>
PATCH v3 1/1 iperf: fix "speed" display in csv report
In reply to Thomas PetazzoniThomas
Quoted 13 lines · Thomas Petazzoni
Hello,
Quoted 9 lines · Matt Weber
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 Matt Poduska <[email protected]>Signed-off-by Atul Singh <[email protected]>Signed-off-by Matt Weber <[email protected]>---
Quoted 5 lines
Applied to master, thanks. Could you send the patch to the upstream project at https://sourceforge.net/projects/iperf2/. Note: this is a different upstream than the one you submitted the patch. The one to which you submitted the patch seems to no longer be active. iperf2 is active, and has made a release in June 2016.
Opened the following ticket
https://sourceforge.net/p/iperf2/tickets/7/
Quoted 9 lines
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Signature · 12 lines
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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160801/8c32966d/attachment.html>