mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-25 22:44:39 +02:00
clean up the cfg error message
This commit is contained in:
parent
72085a63ea
commit
800e15d07e
@ -133,8 +133,8 @@ int check_dump_cfg(struct hand *hand)
|
|||||||
int parse_configure(struct hand *hand, char * file_path)
|
int parse_configure(struct hand *hand, char * file_path)
|
||||||
{
|
{
|
||||||
if (access(file_path, F_OK)) {
|
if (access(file_path, F_OK)) {
|
||||||
fprintf(stderr, "Error - can't read file %s: %s\n",
|
fprintf(stderr, "Error - can't read configure file %s.\n",
|
||||||
file_path, strerror(errno));
|
file_path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,11 +178,8 @@ int parse_configure(struct hand *hand, char * file_path)
|
|||||||
|
|
||||||
cfg_t *cfg;
|
cfg_t *cfg;
|
||||||
cfg = cfg_init(opts, 0);
|
cfg = cfg_init(opts, 0);
|
||||||
if (cfg_parse(cfg, file_path) == CFG_PARSE_ERROR) {
|
if (cfg_parse(cfg, file_path) == CFG_PARSE_ERROR)
|
||||||
fprintf(stderr, "Error - can't read file %s: %s\n",
|
|
||||||
file_path, strerror(errno));
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
|
|
||||||
cfg_free(cfg);
|
cfg_free(cfg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user