{
assert(loc.file);
if (ferror(f)) {
- Message(M_FATAL, "error reading config file (%s): %s",
+ Message(M_FATAL, "error reading config file (%s): %s\n",
loc.file, strerror(errno));
exit(current_phase);
} else if (feof(f)) {
- Message(M_FATAL, "unexpected end of config file (%s)", loc.file);
+ Message(M_FATAL, "unexpected end of config file (%s)\n", loc.file);
exit(current_phase);
}
}
path, arg, WTERMSIG(rv), strsignal(WTERMSIG(rv)),
WCOREDUMP(rv) ? " - core dumped" : "");
else
- Message(M_ERR, "sys_cmd(%s,%s,...) exited with wstat %#x",
+ Message(M_ERR, "sys_cmd(%s,%s,...) exited with wstat %#x\n",
path, arg, rv);
}
} else if (c==0) {
i=list_elem(args,0);
if (i) {
if (i->type!=t_string) {
- cfgfatal(i->loc,"rsa-public","first argument must be a string");
+ cfgfatal(i->loc,"rsa-public","first argument must be a string\n");
}
e=i->data.string;
if (mpz_init_set_str(&st->e,e,10)!=0) {
i=list_elem(args,1);
if (i) {
if (i->type!=t_string) {
- cfgfatal(i->loc,"rsa-public","second argument must be a string");
+ cfgfatal(i->loc,"rsa-public","second argument must be a string\n");
}
n=i->data.string;
if (mpz_init_set_str(&st->n,n,10)!=0) {
i=list_elem(args,0);
if (i) {
if (i->type!=t_string) {
- cfgfatal(i->loc,"rsa-public","first argument must be a string");
+ cfgfatal(i->loc,"rsa-public","first argument must be a string\n");
}
filename=i->data.string;
} else {
}
b=safe_malloc(length,"rsapriv_apply");
if (fread(b,length,1,f) != 1) {
- cfgfatal_maybefile(f,loc,"rsa-private","error reading modulus");
+ cfgfatal_maybefile(f,loc,"rsa-private","error reading modulus\n");
}
mpz_init(&st->n);
read_mpbin(&st->n,b,length);
st->netlink=find_cl_if(dict,"link",CL_NETLINK,True,"site",loc);
list_t *comms_cfg=dict_lookup(dict,"comm");
- if (!comms_cfg) cfgfatal(loc,"site","closure list \"comm\" not found");
+ if (!comms_cfg) cfgfatal(loc,"site","closure list \"comm\" not found\n");
st->ncomms=list_length(comms_cfg);
st->comms=safe_malloc_ary(sizeof(*st->comms),st->ncomms,"comms");
assert(st->ncomms);
for (i=0; i<st->ncomms; i++) {
item_t *item=list_elem(comms_cfg,i);
- if (item->type!=t_closure) cfgfatal(loc,"site","comm is not a closure");
+ if (item->type!=t_closure)
+ cfgfatal(loc,"site","comm is not a closure\n");
closure_t *cl=item->data.closure;
- if (cl->type!=CL_COMM) cfgfatal(loc,"site","comm closure wrong type");
+ if (cl->type!=CL_COMM) cfgfatal(loc,"site","comm closure wrong type\n");
st->comms[i]=cl->interface;
}