Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
// Send another line
bytes_written = snprintf(buffer, length, "LINE %d\n", *lines);
if (bytes_written < 0) {
- LOG_ERROR("Could not write line (%u) to stdin: %m\n", *lines);
+ LOG_ERROR("Could not write line (%d) to stdin: %m\n", *lines);
return 1;
}
do { \
if (value1 != value2) { \
LOG_ERROR("Failed assertion: " #value1 " (%lld) != " #value2 " (%lld) %s:%d %s\n", \
- value1, value2, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
+ (long long int)value1, (long long int)value2, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
goto FAIL; \
} \
} while (0)