Code

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 abd5612799a39d81aaa40a9bdb33fd4da9cd71d4..fc65358264f31856e7d14817be7d0c23ae8db529 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);
        }