summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 084561b)
raw | patch | inline | side by side (parent: 084561b)
author | Florian Forster <octo@collectd.org> | |
Mon, 18 Jun 2012 08:49:38 +0000 (10:49 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 18 Jun 2012 08:49:38 +0000 (10:49 +0200) |
src/oracle.c | patch | blob | history |
diff --git a/src/oracle.c b/src/oracle.c
index 4c85e293f30d67922852283481789069fb0290ae..79725d70346a49ef7d3ae5e2309ddf44877c9f3c 100644 (file)
--- a/src/oracle.c
+++ b/src/oracle.c
(OraText *) db->connect_id, (ub4) strlen (db->connect_id));
if ((status != OCI_SUCCESS) && (status != OCI_SUCCESS_WITH_INFO))
{
- o_report_error ("o_read_database", "OCILogon", oci_error);
+ char errfunc[256];
+
+ ssnprintf (errfunc, sizeof (errfunc), "OCILogon(\"%s\")", db->connect_id);
+
+ o_report_error ("o_read_database", errfunc, oci_error);
DEBUG ("oracle plugin: OCILogon (%s): db->oci_service_context = %p;",
db->connect_id, db->oci_service_context);
db->oci_service_context = NULL;