1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-16 08:03:24 +00:00

improved dev_t print format definition

This commit is contained in:
Gerhard Rieger 2011-11-27 11:37:32 +01:00
parent eccce7542e
commit abb25c1427
6 changed files with 33 additions and 30 deletions

View file

@ -263,7 +263,7 @@ int filan_stat(
headprinted = 1;
}
if (filan_rawoutput) {
snprintf(stdevstr, 8, F_st_dev, buf->st_dev);
snprintf(stdevstr, 8, F_dev, buf->st_dev);
} else {
snprintf(stdevstr, 8, "%hu,%hu", (unsigned short)buf->st_dev>>8, (unsigned short)buf->st_dev&0xff);
}