diff --git a/src/common_api/dss_api_impl.c b/src/common_api/dss_api_impl.c index 4cf34570f8cf7f1061764b262070fc56720dcb70..157ac86a2810713862b8e39f374420d28a3bdc7b 100644 --- a/src/common_api/dss_api_impl.c +++ b/src/common_api/dss_api_impl.c @@ -3039,7 +3039,7 @@ static status_t dss_encode_fallocate_file(dss_conn_t *conn, dss_packet_t *pack, static status_t dss_encode_hotpatch(dss_conn_t *conn, dss_packet_t *pack, void *send_info) { if (conn->proto_version < DSS_VERSION_2) { - DSS_THROW_ERROR(ERR_DSS_UNSUPPORTED_CMD, "hotpatch"); + DSS_THROW_ERROR(ERR_DSS_UNSUPPORTED_CMD, "hotpatch", conn->proto_version, (uint32)DSS_VERSION_2); return CM_ERROR; } dss_hotpatch_cmd_info_t *info = (dss_hotpatch_cmd_info_t *)send_info; @@ -3053,7 +3053,7 @@ static status_t dss_encode_hotpatch(dss_conn_t *conn, dss_packet_t *pack, void * static status_t dss_encode_query_hotpatch(dss_conn_t *conn, dss_packet_t *pack, void *send_info) { if (conn->proto_version < DSS_VERSION_2) { - DSS_THROW_ERROR(ERR_DSS_UNSUPPORTED_CMD, "query_hotpatch"); + DSS_THROW_ERROR(ERR_DSS_UNSUPPORTED_CMD, "query_hotpatch", conn->proto_version, (uint32)DSS_VERSION_2); return CM_ERROR; } CM_RETURN_IFERR(dss_put_int32(pack, *((uint32 *)send_info))); diff --git a/src/log/dss_log.c b/src/log/dss_log.c index e16734a64cc1aa0aa67c39ac664760908a1bacaf..1daaeab030964ed59634b4021e5c33a61684f617 100644 --- a/src/log/dss_log.c +++ b/src/log/dss_log.c @@ -116,7 +116,8 @@ const char *g_dss_error_desc[DSS_ERROR_COUNT] = { "[CHECK_PROTO]Protocol version need be changed, old protocol version is %u, new protocol version is %u.", [ERR_DSS_INVALID_BLOCK_TYPE] = "Get Invalid block type, expect type is %u, but the type in share memory is %u.", [ERR_DSS_SERVER_REBOOT] = "DSS server has reboot or close, dss client need reboot or close.", - [ERR_DSS_UNSUPPORTED_CMD] = "Command \"%s\" is not supported in current version of dssserver.", + [ERR_DSS_UNSUPPORTED_CMD] = + "Command \"%s\" is not supported in current version(%u) of dssserver, least supporting version is %u.", [ERR_DSS_VOLUME_FENCE_CHECK_COND] = "Fail to check fence cond:%s.", [ERR_DSS_HP_NOT_INIT] = "Hotpatch module is not inited.", [ERR_DSS_HP_LIB_HAS_LOADED] = "The patch has been loaded, don't load it again.",