Skip to contentSkip to conversation

iperf: fix "speed" display in csv report

PATCH Superseded Matt Weber 3 participants 5 messages Jul 29, 2016 – Aug 1, 2016

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

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
new file mode 100644
index 0000000..b06c709
@@ -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
#1 lore raw

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/

---

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

Quoted 7 lines

v2 -> v3
[Khem
- Use c99 standard PRIu64

v3 -> 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.patch

package/iperf/0001-fix-speed-display-in-csv-report.patch new file +39 -1
new file mode 100644
index 0000000..b06c709
@@ -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>

#2 lore raw

PATCH v4 1/1 iperf: fix "speed" display in csv report

In reply to Matt Weber

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/

---

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
#3 lore raw

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/

---

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>

#4 lore raw

PATCH v3 1/1 iperf: fix "speed" display in csv report

In reply to Thomas Petazzoni

Thomas

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/

---

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>