close(fd);
return -1;
} else if ((unsigned int)length != len) {
- dprintf("Could not write %d bytes to attribute %s\n",
+ dprintf("Could not write %zd bytes to attribute %s\n",
len, sysattr->name);
/*
* since we could not write user supplied number of bytes,