From: hshopeful Date: Mon, 20 Apr 2015 12:35:40 +0000 (+0800) Subject: Update meta_data.c X-Git-Tag: collectd-5.5.0~12^2~4^2^2~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=15037c9f4b3c43ac3d09040e16c3a430c9fc2b22;p=collectd.git Update meta_data.c In the function meta_data_get_string(), when the type mismatchs,the ERROR statement should be ERROR ("meta_data_get_string: Type mismatch for key `%s'", e->key); not ERROR ("meta_data_get_signed_int: Type mismatch for key `%s'", e->key); --- diff --git a/src/meta_data.c b/src/meta_data.c index ea98ba94..01927531 100644 --- a/src/meta_data.c +++ b/src/meta_data.c @@ -483,7 +483,7 @@ int meta_data_get_string (meta_data_t *md, /* {{{ */ if (e->type != MD_TYPE_STRING) { - ERROR ("meta_data_get_signed_int: Type mismatch for key `%s'", e->key); + ERROR ("meta_data_get_string: Type mismatch for key `%s'", e->key); pthread_mutex_unlock (&md->lock); return (-ENOENT); }