projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dns plugin: Improve debug message.
[collectd.git]
/
src
/
types_list.c
diff --git
a/src/types_list.c
b/src/types_list.c
index
a9af9e6
..
ed832fe
100644
(file)
--- a/
src/types_list.c
+++ b/
src/types_list.c
@@
-34,7
+34,7
@@
static int parse_ds (data_source_t *dsrc, char *buf, size_t buf_len)
if (buf_len < 11)
{
if (buf_len < 11)
{
- ERROR ("parse_ds: (buf_len = %u) < 11", buf_len);
+ ERROR ("parse_ds: (buf_len = %
z
u) < 11", buf_len);
return (-1);
}
return (-1);
}
@@
-172,7
+172,9
@@
int read_types_list (const char *file)
if (fh == NULL)
{
char errbuf[1024];
if (fh == NULL)
{
char errbuf[1024];
- ERROR ("open (%s) failed: %s",
+ fprintf (stderr, "Failed to open types database `%s': %s.\n",
+ file, sstrerror (errno, errbuf, sizeof (errbuf)));
+ ERROR ("Failed to open types database `%s': %s",
file, sstrerror (errno, errbuf, sizeof (errbuf)));
return (-1);
}
file, sstrerror (errno, errbuf, sizeof (errbuf)));
return (-1);
}