Mercurial > hg > xmms-sid
comparison src/xs_support.c @ 911:b928b8a9c5bf
Oops, fix some error print arguments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 10 Nov 2012 13:29:18 +0200 |
parents | b6e069c9c000 |
children | b31d420b7fee |
comparison
equal
deleted
inserted
replaced
910:32831cbecedc | 911:b928b8a9c5bf |
---|---|
140 | 140 |
141 fileSize = xs_fsize(fp); | 141 fileSize = xs_fsize(fp); |
142 if (failMaxSize && fileSize > maxSize) | 142 if (failMaxSize && fileSize > maxSize) |
143 { | 143 { |
144 xs_error("File '%s' size %d exceeds maxSize %d.\n", | 144 xs_error("File '%s' size %d exceeds maxSize %d.\n", |
145 fileSize, maxSize); | 145 filename, fileSize, maxSize); |
146 goto error; | 146 goto error; |
147 } | 147 } |
148 | 148 |
149 readSize = fileSize < maxSize ? fileSize : maxSize; | 149 readSize = fileSize < maxSize ? fileSize : maxSize; |
150 | 150 |
163 xs_fclose(fp); | 163 xs_fclose(fp); |
164 | 164 |
165 if (!res) | 165 if (!res) |
166 { | 166 { |
167 xs_error("File '%s', expected %d bytes, read %d bytes.\n", | 167 xs_error("File '%s', expected %d bytes, read %d bytes.\n", |
168 readSize, *bufSize); | 168 filename, readSize, *bufSize); |
169 } | 169 } |
170 | 170 |
171 return res; | 171 return res; |
172 } | 172 } |
173 | 173 |