diff --git a/src/chunkserver/raftlog/curve_segment.cpp b/src/chunkserver/raftlog/curve_segment.cpp index 0d213ac499..f51bf3a82e 100644 --- a/src/chunkserver/raftlog/curve_segment.cpp +++ b/src/chunkserver/raftlog/curve_segment.cpp @@ -439,8 +439,9 @@ int CurveSegment::append(const braft::LogEntry* entry) { free(write_buf); if (ret != static_cast(to_write)) { LOG(ERROR) << "Fail to write directly to fd=" << _direct_fd - << ", buf=" << write_buf << ", size=" << to_write - << ", offset=" << _meta.bytes << ", error=" << berror(); + << ", buf=" << static_cast(write_buf) + << ", size=" << to_write << ", offset=" << _meta.bytes + << ", error=" << berror(); return -1; } } else {