Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a6bb208
)
Better error handling in case of unsupported driver
author
Ido Barnea
<
[email protected]
>
Wed, 13 Jul 2016 12:42:52 +0000
(15:42 +0300)
committer
Ido Barnea
<
[email protected]
>
Wed, 13 Jul 2016 12:42:52 +0000
(15:42 +0300)
src/main_dpdk.cpp
patch
|
blob
|
history
diff --git
a/src/main_dpdk.cpp
b/src/main_dpdk.cpp
index
099ebb3
..
17b9f25
100644
(file)
--- a/
src/main_dpdk.cpp
+++ b/
src/main_dpdk.cpp
@@
-3386,7
+3386,9
@@
int CGlobalTRex::ixgbe_prob_init(void){
if ( !CTRexExtendedDriverDb::Ins()->is_driver_exists(dev_info.driver_name) ){
- printf(" ERROR driver name %s is not supported \n",dev_info.driver_name);
+ printf(" Error: driver %s is not supported. Please consult the documentation for a list of supported drivers\n"
+ ,dev_info.driver_name);
+ exit(1);
}
int i;