Corrected logstring format

This commit is contained in:
tastytea 2018-05-22 20:45:54 +02:00
parent 061056548b
commit 293600447b
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (expandurl-mastodon
VERSION 0.6.2
VERSION 0.6.3
LANGUAGES CXX
)
@ -15,6 +15,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
# uint_fast16_t can be bigger than 16 bit, but that doesn't matter because
# everything but the last 16 bit is padded with zeroes.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-format")
endif()
include_directories(${PROJECT_SOURCE_DIR}/src)
include_directories(${PROJECT_BINARY_DIR})

View File

@ -220,7 +220,7 @@ Mastodon::Easy::Status Listener::get_status(const std::uint_fast64_t &id)
}
else
{
syslog(LOG_ERR, "Error %lu in %s.", ret, __FUNCTION__);
syslog(LOG_ERR, "Error %u in %s.", ret, __FUNCTION__);
return Easy::Status();
}
}
@ -272,7 +272,7 @@ const bool Listener::send_reply(const Easy::Status &to_status,
}
else
{
syslog(LOG_ERR, "Error %lu in %s.", ret, __FUNCTION__);
syslog(LOG_ERR, "Error %u in %s.", ret, __FUNCTION__);
return false;
}
}
@ -287,7 +287,7 @@ const std::uint_fast64_t Listener::get_parent_id(const Easy::Notification &notif
answer);
if (ret > 0 || !Easy::Status(answer).valid())
{
syslog(LOG_ERR, "Error %lu: Could not fetch status (in %s).",
syslog(LOG_ERR, "Error %u: Could not fetch status (in %s).",
ret, __FUNCTION__);
return 0;
}
@ -298,7 +298,7 @@ const std::uint_fast64_t Listener::get_parent_id(const Easy::Notification &notif
if (ret > 0)
{
syslog(LOG_ERR, "Error %lu: Could not get status (in %s).",
syslog(LOG_ERR, "Error %u: Could not get status (in %s).",
ret, __FUNCTION__);
return 0;
}
@ -354,12 +354,12 @@ const bool Listener::register_app()
}
else
{
syslog(LOG_ERR, "register_app2(): %lu", ret);
syslog(LOG_ERR, "register_app2(): %u", ret);
}
}
else
{
syslog(LOG_ERR, "register_app1(): %lu", ret);
syslog(LOG_ERR, "register_app1(): %u", ret);
}
return false;