Commit 2cff3e74 authored by Maxime Perrotin's avatar Maxime Perrotin

Remove extra %s in command

Well done, C, for not spotting it
parent 7d21e736
...@@ -27,7 +27,7 @@ ifeq ($(UNAME), Linux) ...@@ -27,7 +27,7 @@ ifeq ($(UNAME), Linux)
fi fi
endif endif
ADA_PROJECT_PATH=`ocarina-config --prefix`/lib/gnat:$$ADA_PROJECT_PATH \ ADA_PROJECT_PATH=`ocarina-config --prefix`/lib/gnat:$$ADA_PROJECT_PATH \
$(gnatpath)gprbuild -x -g $(exec) -p -P buildsupport.gpr -XBUILD="debug" $(gnatpath)gprbuild -x -g $(exec) -p -P buildsupport.gpr -XBUILD="debug" --target=x86_64-linux
install: install:
$(MAKE) $(MAKE)
......
...@@ -79,7 +79,7 @@ void Process_Node_Driver_Configuration(Device *device, char *node) ...@@ -79,7 +79,7 @@ void Process_Node_Driver_Configuration(Device *device, char *node)
if (-1 == ret) { if (-1 == ret) {
switch (errno) { switch (errno) {
case EEXIST : break; case EEXIST : break;
default : ERROR ("** Error: Impossible to create directory %s\n", driver_conf_path); default : ERROR ("[ERROR] Impossible to create directory %s\n", driver_conf_path);
exit (-1); exit (-1);
return; return;
break; break;
...@@ -90,24 +90,23 @@ void Process_Node_Driver_Configuration(Device *device, char *node) ...@@ -90,24 +90,23 @@ void Process_Node_Driver_Configuration(Device *device, char *node)
if (-1 == ret) { if (-1 == ret) {
switch (errno) { switch (errno) {
case EEXIST : break; case EEXIST : break;
default : ERROR ("** Error: Impossible to create directory %s\n", driver_conf_path); default : ERROR ("[ERROR] Impossible to create directory %s\n", driver_conf_path);
exit (-1); exit (-1);
return; return;
break; break;
} }
} }
command = make_string ("mono $(which asn1.exe) -%s -o %s %s %s",
command = make_string ("mono $(which asn1.exe) %s -%s -o %s %s %s",
C_DRIVER ? "c -typePrefix __po_hi_c_": "Ada", C_DRIVER ? "c -typePrefix __po_hi_c_": "Ada",
driver_conf_path, driver_conf_path,
filename, filename,
device->asn1_filename); device->asn1_filename);
ERROR ("Executing %s\n", command); ERROR ("[INFO] Executing %s\n", command);
if (system (command)) { if (system (command)) {
ERROR ("The command failed. Try it yourself (correct paths, access to files, etc.)\n"); ERROR ("[ERROR] The command failed. Try it yourself (correct paths, access to files, etc.)\n");
exit (-1); exit (-1);
} }
else if (!get_context()->test) { else if (!get_context()->test) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment