fprintf(stderr,
"Missing errorhandling code in %s(), %s line %d:\n"
- " Condition(%s) not true.\n"
- " errno = %d (%s)\n", func, file, line, cond, err, strerror(err));
+ " Condition(%s) not true.\n",
+ func, file, line, cond);
+ if (err)
+ fprintf(stderr,
+ " errno = %d (%s)\n", err, strerror(err));
abort();
}
fprintf(stderr,
"Assert error in %s(), %s line %d:\n"
- " Condition(%s) not true.\n"
- " errno = %d (%s)\n", func, file, line, cond, err, strerror(err));
+ " Condition(%s) not true.\n",
+ func, file, line, cond);
+ if (err)
+ fprintf(stderr,
+ " errno = %d (%s)\n", err, strerror(err));
abort();
}