From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp16.mail.ru (smtp16.mail.ru [94.100.176.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 2BE20469710 for ; Tue, 19 May 2020 15:12:13 +0300 (MSK) Date: Tue, 19 May 2020 15:11:48 +0300 From: Alexander Turenko Message-ID: <20200519121148.v4fiwv65by3tbpc2@tkn_work_nb> References: <9dd79b8d7c37a9ff60e4c7abcde81c5cf5b4e5f6.1589240704.git.v.shpilevoy@tarantool.org> <20200513210633.GA18509@tarantool.org> <5c933d26-cda8-81e1-30f6-3547a4629b31@tarantool.org> <20200514022428.GD18509@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Tarantool-patches] [PATCH 5/5] msgpuck: activate MP_EXT custom serializers List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org > diff --git a/src/box/msgpack.c b/src/box/msgpack.c > index 37bb3920c..4013aec4c 100644 > --- a/src/box/msgpack.c > +++ b/src/box/msgpack.c > @@ -49,7 +49,8 @@ msgpack_fprint_ext(FILE *file, const char **data, int depth) > case MP_ERROR: > return mp_fprint_error(file, data, depth); > default: > - return fprintf(file, "undefined"); > + return fprintf(file, "(extension: type %d, len %u)", (int)type, > + (unsigned)len); > } > } I would reuse mp_fprint_ext_default() here. > > @@ -66,7 +67,8 @@ msgpack_snprint_ext(char *buf, int size, const char **data, int depth) > case MP_ERROR: > return mp_snprint_error(buf, size, data, depth); > default: > - return snprintf(buf, size, "undefined"); > + return snprintf(buf, size, "(extension: type %d, len %u)", > + (int)type, (unsigned)len); > } > } Same.