]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
include/encoding: fix compat version error message 19660/head
authorXinying Song <songxinying@cloudin.cn>
Sat, 23 Dec 2017 06:44:26 +0000 (14:44 +0800)
committerXinying Song <songxinying@cloudin.cn>
Sat, 23 Dec 2017 06:44:31 +0000 (14:44 +0800)
The compatv parameter can not behave as expected.
Using std::to_string instead of a macro pound sign.
Signed-off-by: Xinying Song <songxinying@cloudin.cn>
src/include/encoding.h

index 5015e19024b2d274d79725a2a1376146d65ecb12..b09b08c11a59193cd27d5c00f518aec1ed8aa707 100644 (file)
@@ -1040,7 +1040,7 @@ decode(std::array<T, N>& 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")