Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
7020ebff
Commit
7020ebff
authored
May 06, 2012
by
Alejandro Mery
Browse files
fex2bin: add verbose logs to stderr of detected entries
parent
acea6b50
Changes
1
Show whitespace changes
Inline
Side-by-side
fex2bin.c
View file @
7020ebff
...
...
@@ -124,8 +124,12 @@ static int parse_fex(FILE *in, const char *filename, struct script *script)
}
else
if
(
pe
>
p
+
1
&&
*
p
==
'"'
&&
pe
[
-
1
]
==
'"'
)
{
/* string */
p
++
;
*--
pe
=
'\0'
;
if
(
script_string_entry_new
(
last_section
,
key
,
pe
-
p
,
p
))
if
(
script_string_entry_new
(
last_section
,
key
,
pe
-
p
,
p
))
{
errf
(
"%s.%s =
\"
%.*s
\"\n
"
,
last_section
->
name
,
key
,
(
int
)(
pe
-
p
),
p
);
continue
;
}
perror
(
"malloc"
);
}
else
if
(
memcmp
(
"port:P"
,
p
,
6
)
==
0
)
{
...
...
@@ -165,6 +169,8 @@ static int parse_fex(FILE *in, const char *filename, struct script *script)
errf
(
"E: %s:%zu: value out of range %lld.
\n
"
,
filename
,
line
,
v
);
}
else
if
(
script_single_entry_new
(
last_section
,
key
,
v
))
{
errf
(
"%s.%s = %lld
\n
"
,
last_section
->
name
,
key
,
v
);
continue
;
}
}
else
{
...
...
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