mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
net/libtrace: Fix build with Clang 6
tracetop.cc:380:16: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] printw("%7"PRIu64"\t%7"PRIu64"\n", ^ http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/libtrace-3.0.19_2.log
This commit is contained in:
parent
7ae43bd8be
commit
c092b3dcd3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478083
1 changed files with 21 additions and 0 deletions
21
net/libtrace/files/patch-tools_tracetop_tracetop.cc
Normal file
21
net/libtrace/files/patch-tools_tracetop_tracetop.cc
Normal file
|
@ -0,0 +1,21 @@
|
|||
tracetop.cc:380:16: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
|
||||
printw("%7"PRIu64"\t%7"PRIu64"\n",
|
||||
^
|
||||
|
||||
--- tools/tracetop/tracetop.cc.orig 2018-08-25 19:01:36 UTC
|
||||
+++ tools/tracetop/tracetop.cc
|
||||
@@ -377,12 +377,12 @@ static void do_report()
|
||||
}
|
||||
switch (display_as) {
|
||||
case BYTES:
|
||||
- printw("%7"PRIu64"\t%7"PRIu64"\n",
|
||||
+ printw("%7" PRIu64 "\t%7" PRIu64 "\n",
|
||||
pq.top().bytes,
|
||||
pq.top().packets);
|
||||
break;
|
||||
case BITS_PER_SEC:
|
||||
- printw("%14.03f\t%"PRIu64"\n",
|
||||
+ printw("%14.03f\t%" PRIu64 "\n",
|
||||
8.0*pq.top().bytes/interval,
|
||||
pq.top().packets);
|
||||
break;
|
Loading…
Add table
Reference in a new issue