void *real_ptr = check_allocation(file, line, function, ptr, &old_size);
void *new_ptr = realloc(real_ptr, size + MALLOC_OVERHEAD);
- if(!new_ptr) fatal("MEMORY: Cannot allocate %zu bytes for %s/%u@%s.", size, function, line, file);
+ if(!new_ptr) fatal("MEMORY: Cannot allocate %zu bytes for %s/%d@%s.", size, function, line, file);
allocations.allocated += size;
allocations.allocated -= old_size;
if(do_rc == 1 && strcmp(type, "rc") == 0) {
if(words < 4) {
- error("%s line of /proc/net/rpc/nfsd has %d words, expected %d", type, words, 4);
+ error("%s line of /proc/net/rpc/nfsd has %u words, expected %d", type, words, 4);
continue;
}
}
else if(do_fh == 1 && strcmp(type, "fh") == 0) {
if(words < 6) {
- error("%s line of /proc/net/rpc/nfsd has %d words, expected %d", type, words, 6);
+ error("%s line of /proc/net/rpc/nfsd has %u words, expected %d", type, words, 6);
continue;
}
}
else if(do_io == 1 && strcmp(type, "io") == 0) {
if(words < 3) {
- error("%s line of /proc/net/rpc/nfsd has %d words, expected %d", type, words, 3);
+ error("%s line of /proc/net/rpc/nfsd has %u words, expected %d", type, words, 3);
continue;
}
}
else if(do_th == 1 && strcmp(type, "th") == 0) {
if(words < 13) {
- error("%s line of /proc/net/rpc/nfsd has %d words, expected %d", type, words, 13);
+ error("%s line of /proc/net/rpc/nfsd has %u words, expected %d", type, words, 13);
continue;
}
}
else if(do_ra == 1 && strcmp(type, "ra") == 0) {
if(words < 13) {
- error("%s line of /proc/net/rpc/nfsd has %d words, expected %d", type, words, 13);
+ error("%s line of /proc/net/rpc/nfsd has %u words, expected %d", type, words, 13);
continue;
}
}
else if(do_net == 1 && strcmp(type, "net") == 0) {
if(words < 5) {
- error("%s line of /proc/net/rpc/nfsd has %d words, expected %d", type, words, 5);
+ error("%s line of /proc/net/rpc/nfsd has %u words, expected %d", type, words, 5);
continue;
}
}
else if(do_rpc == 1 && strcmp(type, "rpc") == 0) {
if(words < 6) {
- error("%s line of /proc/net/rpc/nfsd has %d words, expected %d", type, words, 6);
+ error("%s line of /proc/net/rpc/nfsd has %u words, expected %d", type, words, 6);
continue;
}