* usage
*/
void usage(void) {
- fprintf(stderr, NLS(MS_OPENPTS, OPENPTS_UML2DOT_USAGE,
+ OUTPUT(NLS(MS_OPENPTS, OPENPTS_UML2DOT_USAGE,
"usage: uml2dot [options] UMLfile \n"
"\t-o output\tset output file (default is stdout)\n"
"\t$ dot -Tpng foo.dot -o foo.png; eog foo.png\n"
/* Read UML(XML) file */
if (input_filename == NULL) {
- printf(NLS(MS_OPENPTS, OPENPTS_UML2DOT_MISSING_XML_FILE, "ERROR missing XMLfile\n"));
+ ERROR(NLS(MS_OPENPTS, OPENPTS_UML2DOT_MISSING_XML_FILE, "ERROR missing XMLfile\n"));
usage();
return -1;
}
rc = readUmlModel(ctx, argv[0]);
if (rc != 0) {
- ERROR("ERROR\n");
+ LOG(LOG_ERR, "ERROR\n");
goto error;
}
rc = writeDotModel(ctx, output_filename);
if (rc != 0) {
- ERROR("ERROR\n");
+ LOG(LOG_ERR, "ERROR\n");
goto error;
}