Skip to content
Snippets Groups Projects
Commit e5e523aa authored by Mark Whitehorn's avatar Mark Whitehorn Committed by Lorenz Meier
Browse files

size_t is different in posix build

parent fb4d72df
No related branches found
No related tags found
No related merge requests found
......@@ -718,7 +718,7 @@ void Logger::write_info(const char *name, const char *value)
/* construct format key (type and name) */
size_t vlen = strlen(value);
msg->key_len = snprintf(msg->key, sizeof(msg->key), "char[%d] %s", vlen, name);
msg->key_len = snprintf(msg->key, sizeof(msg->key), "char[%u] %s", (unsigned)vlen, name);
size_t msg_size = sizeof(*msg) - sizeof(msg->key) + msg->key_len;
/* copy string value directly to buffer */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment