From: Xinying Song Date: Sat, 23 Dec 2017 06:44:26 +0000 (+0800) Subject: include/encoding: fix compat version error message X-Git-Tag: v13.0.2~650^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=74745ef43e585f47f528ea3ab78061dfd4707f46;p=ceph.git include/encoding: fix compat version error message The compatv parameter can not behave as expected. Using std::to_string instead of a macro pound sign. Signed-off-by: Xinying Song --- diff --git a/src/include/encoding.h b/src/include/encoding.h index 5015e19024b2..b09b08c11a59 100644 --- a/src/include/encoding.h +++ b/src/include/encoding.h @@ -1040,7 +1040,7 @@ decode(std::array& v, bufferlist::iterator& p) #define ENCODE_FINISH(bl) ENCODE_FINISH_NEW_COMPAT(bl, 0) #define DECODE_ERR_OLDVERSION(func, v, compatv) \ - (std::string(func) + " no longer understand old encoding version " #v " < " #compatv) + (std::string(func) + " no longer understand old encoding version " #v " < " + std::to_string(compatv)) #define DECODE_ERR_PAST(func) \ (std::string(func) + " decode past end of struct encoding")