{
if (log)
log(ld, FILTER_LOGLEVEL_ERROR,
- "Error opening temporary file with input stream");
+ "bannertopdf: Error opening temporary file with input stream");
goto out;
}
break;
if (log)
log(ld, FILTER_LOGLEVEL_ERROR,
- "line %d is missing a value", linenr);
+ "bannertopdf: Line %d is missing a value", linenr);
continue;
}
{
if (log)
log(ld, FILTER_LOGLEVEL_ERROR,
- "bannertopdf: note:%d: bannertopdf does not support '%s'",
+ "bannertopdf: Note: %d: bannertopdf does not support '%s'",
linenr, key);
}
else
break;
if (log)
log(ld, FILTER_LOGLEVEL_ERROR,
- "error:%d: unknown keyword '%s'",
+ "bannertopdf: Error: %d: unknown keyword '%s'",
linenr, key);
}
}
if ((s = tmpfile()) == NULL)
{
if (log)
- log(ld, FILTER_LOGLEVEL_ERROR, "bannertopdf: cannot create temp file: %s\n", strerror(errno));
+ log(ld, FILTER_LOGLEVEL_ERROR, "bannertopdf: Cannot create temp file: %s\n", strerror(errno));
return 1;
}
#endif
if (fstat(fileno(s), &st) < 0)
{
if (log)
- log(ld, FILTER_LOGLEVEL_ERROR, "bannertopdf: cannot fstat(): %s\n", , strerror(errno));
+ log(ld, FILTER_LOGLEVEL_ERROR, "bannertopdf: Cannot fstat(): %s\n", , strerror(errno));
return 1;
}
fseek(s, 0L, SEEK_SET);
if ((buf = malloc(st.st_size + 1)) == NULL)
{
if (log)
- log(ld, FILTER_LOGLEVEL_ERROR, "bannertopdf: cannot malloc(): %s\n", , strerror(errno));
+ log(ld, FILTER_LOGLEVEL_ERROR, "bannertopdf: Cannot malloc(): %s\n", , strerror(errno));
return 1;
}
size_t nbytes = fread(buf, 1, st.st_size, s);
}
if (log) log(ld, FILTER_LOGLEVEL_DEBUG,
- "pdftops: Copying input to temp file \"%s\"",
+ "bannertopdf: Copying input to temp file \"%s\"",
tempfile);
while ((bytes = fread(buffer, 1, sizeof(buffer), inputfp)) > 0)