diff options
Diffstat (limited to 'utils/hwstub/tools')
-rw-r--r-- | utils/hwstub/tools/Makefile | 2 | ||||
-rw-r--r-- | utils/hwstub/tools/hwstub_shell.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/utils/hwstub/tools/Makefile b/utils/hwstub/tools/Makefile index 079933ad25..95eb4b72d6 100644 --- a/utils/hwstub/tools/Makefile +++ b/utils/hwstub/tools/Makefile | |||
@@ -8,7 +8,7 @@ REGTOOLS_LIB_DIR=../../regtools/lib | |||
8 | INCLUDES=-I$(HWSTUB_INCLUDE_DIR) -I$(REGTOOLS_INCLUDE_DIR) `pkg-config --cflags lua5.2` `pkg-config --cflags libusb-1.0` | 8 | INCLUDES=-I$(HWSTUB_INCLUDE_DIR) -I$(REGTOOLS_INCLUDE_DIR) `pkg-config --cflags lua5.2` `pkg-config --cflags libusb-1.0` |
9 | CFLAGS=-Wall -O2 -std=c99 -g $(INCLUDES) -D_XOPEN_SOURCE=600 | 9 | CFLAGS=-Wall -O2 -std=c99 -g $(INCLUDES) -D_XOPEN_SOURCE=600 |
10 | CXXFLAGS=-Wall -O2 -std=c++11 -g $(INCLUDES) | 10 | CXXFLAGS=-Wall -O2 -std=c++11 -g $(INCLUDES) |
11 | LDFLAGS=`pkg-config --libs libusb-1.0` `pkg-config --libs lua5.2` -lreadline -L$(HWSTUB_LIB_DIR) -L$(REGTOOLS_LIB_DIR) -lsocdesc -lhwstub `xml2-config --libs` -pthread | 11 | LDFLAGS=-lhwstub `pkg-config --libs libusb-1.0` `pkg-config --libs lua5.2` -lreadline -L$(HWSTUB_LIB_DIR) -L$(REGTOOLS_LIB_DIR) -lsocdesc `xml2-config --libs` -pthread |
12 | EXEC=hwstub_shell hwstub_load hwstub_server hwstub_test | 12 | EXEC=hwstub_shell hwstub_load hwstub_server hwstub_test |
13 | SRC=$(wildcard *.c) | 13 | SRC=$(wildcard *.c) |
14 | SRCXX=$(wildcard *.cpp) | 14 | SRCXX=$(wildcard *.cpp) |
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index 88cb1231fb..4cd5953a50 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp | |||
@@ -74,12 +74,12 @@ void print_context(const std::string& file, const soc_desc::error_context_t& ctx | |||
74 | { | 74 | { |
75 | for(size_t j = 0; j < ctx.count(); j++) | 75 | for(size_t j = 0; j < ctx.count(); j++) |
76 | { | 76 | { |
77 | soc_desc::error_t e = ctx.get(j); | 77 | soc_desc::err_t e = ctx.get(j); |
78 | switch(e.level()) | 78 | switch(e.level()) |
79 | { | 79 | { |
80 | case soc_desc::error_t::INFO: printf("[INFO]"); break; | 80 | case soc_desc::err_t::INFO: printf("[INFO]"); break; |
81 | case soc_desc::error_t::WARNING: printf("[WARN]"); break; | 81 | case soc_desc::err_t::WARNING: printf("[WARN]"); break; |
82 | case soc_desc::error_t::FATAL: printf("[FATAL]"); break; | 82 | case soc_desc::err_t::FATAL: printf("[FATAL]"); break; |
83 | default: printf("[UNK]"); break; | 83 | default: printf("[UNK]"); break; |
84 | } | 84 | } |
85 | if(e.location().size() != 0) | 85 | if(e.location().size() != 0) |