Commit a49a7841 authored by Greg Williams's avatar Greg Williams
Browse files

Fixed gcc-specific error for a printf type issue in bus lib

parent e80f7f3b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -235,11 +235,11 @@ static bool attempt_to_increase_resource_limits(struct bus *b) {
        return false;
    }

    const int nval = 1024;
    const unsigned int nval = 1024;

    BUS_LOG_SNPRINTF(b, 3, LOG_MEMORY, b->udata, 256,
        "Current FD resource limits, [%lld, %lld], changing to %d",
        info.rlim_cur, info.rlim_max, nval);
        "Current FD resource limits, [%lu, %lu], changing to %u",
        (unsigned long)info.rlim_cur, (unsigned long)info.rlim_max, nval);

    if (info.rlim_cur < nval && info.rlim_max > nval) {
        info.rlim_cur = nval;