Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
buildsupport
Commits
2cff3e74
Commit
2cff3e74
authored
Jul 03, 2017
by
Maxime Perrotin
Browse files
Remove extra %s in command
Well done, C, for not spotting it
parent
7d21e736
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
2cff3e74
...
@@ -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)
...
...
c/driver_configuration.c
View file @
2cff3e74
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment