git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mbuf: rename in_port to just port
[dpdk.git]
/
examples
/
multi_process
/
symmetric_mp
/
main.c
diff --git
a/examples/multi_process/symmetric_mp/main.c
b/examples/multi_process/symmetric_mp/main.c
index
d40223e
..
b8f31b3
100644
(file)
--- a/
examples/multi_process/symmetric_mp/main.c
+++ b/
examples/multi_process/symmetric_mp/main.c
@@
-347,10
+347,10
@@
lcore_main(void *arg __rte_unused)
/* build up message in msgbuf before printing to decrease likelihood
* of multi-core message interleaving.
*/
/* build up message in msgbuf before printing to decrease likelihood
* of multi-core message interleaving.
*/
- msgbufpos +=
rte_
snprintf(msgbuf, sizeof(msgbuf) - msgbufpos,
+ msgbufpos += snprintf(msgbuf, sizeof(msgbuf) - msgbufpos,
"Lcore %u using ports ", id);
for (p = start_port; p < end_port; p++){
"Lcore %u using ports ", id);
for (p = start_port; p < end_port; p++){
- msgbufpos +=
rte_
snprintf(msgbuf + msgbufpos, sizeof(msgbuf) - msgbufpos,
+ msgbufpos += snprintf(msgbuf + msgbufpos, sizeof(msgbuf) - msgbufpos,
"%u ", (unsigned)ports[p]);
}
printf("%s\n", msgbuf);
"%u ", (unsigned)ports[p]);
}
printf("%s\n", msgbuf);