Revision 48384854 blockdev.c
b/blockdev.c | ||
---|---|---|
224 | 224 |
|
225 | 225 |
if (cyls || heads || secs) { |
226 | 226 |
if (cyls < 1 || (type == IF_IDE && cyls > 16383)) { |
227 |
fprintf(stderr, "qemu: '%s' invalid physical cyls number\n", buf);
|
|
227 |
fprintf(stderr, "qemu: invalid physical cyls number\n");
|
|
228 | 228 |
return NULL; |
229 | 229 |
} |
230 | 230 |
if (heads < 1 || (type == IF_IDE && heads > 16)) { |
231 |
fprintf(stderr, "qemu: '%s' invalid physical heads number\n", buf);
|
|
231 |
fprintf(stderr, "qemu: invalid physical heads number\n");
|
|
232 | 232 |
return NULL; |
233 | 233 |
} |
234 | 234 |
if (secs < 1 || (type == IF_IDE && secs > 63)) { |
235 |
fprintf(stderr, "qemu: '%s' invalid physical secs number\n", buf);
|
|
235 |
fprintf(stderr, "qemu: invalid physical secs number\n");
|
|
236 | 236 |
return NULL; |
237 | 237 |
} |
238 | 238 |
} |
Also available in: Unified diff