netapp plugin: Fix a syntax error in an error message.
authorFlorian Forster <octo@noris.net>
Wed, 17 Mar 2010 18:12:53 +0000 (19:12 +0100)
committerFlorian Forster <octo@noris.net>
Wed, 17 Mar 2010 18:12:53 +0000 (19:12 +0100)
Thanks to facade from IRC for the hint.

src/netapp.c

index abd5612..fc65358 100644 (file)
@@ -1490,7 +1490,7 @@ static void cna_handle_volume_snap_usage(const host_config_t *host, /* {{{ */
        {
                ERROR ("netapp plugin: cna_handle_volume_snap_usage: "
                                "na_elem_child (\"snapshots\") failed "
-                               "for host %s.", hostname);
+                               "for host %s.", host->name);
                na_elem_free(data);
                return;
        }
@@ -1525,7 +1525,7 @@ static int cna_handle_volume_usage_data (const host_config_t *host, /* {{{ */
        {
                ERROR ("netapp plugin: cna_handle_volume_usage_data: "
                                "na_elem_child (\"volumes\") failed "
-                               "for host %s.", hostname);
+                               "for host %s.", host->name);
                return (-1);
        }