From 15037c9f4b3c43ac3d09040e16c3a430c9fc2b22 Mon Sep 17 00:00:00 2001 From: hshopeful Date: Mon, 20 Apr 2015 20:35:40 +0800 Subject: [PATCH] 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); --- src/meta_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.11.0