[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH 3/5] disk geometry
- From: Matthias Bolte <matthias bolte googlemail com>
- To: "Daniel P. Berrange" <berrange redhat com>
- Cc: libvirt-list redhat com
- Subject: Re: [libvirt] [PATCH 3/5] disk geometry
- Date: Fri, 26 Jun 2009 20:23:02 +0200
2009/6/25 Daniel P. Berrange <berrange redhat com>:
> On Wed, Jun 24, 2009 at 11:17:49AM +0200, Henrik Persson wrote:
>> Reads the disk geometry to be able to align disk partitions on cylinder boundries.
>> Msdos partition tables really like this stuff.
>> + /* return the geometry of the disk and then exit */
>> + if(cmd == DISK_GEOMETRY) {
>> + printf("%d%c%d%c%d%c%",
>> + dev->hw_geom.cylinders, '\0',
>> + dev->hw_geom.heads, '\0',
>> + dev->hw_geom.sectors, '\0');
>> + return 0;
>> + }
>> +
Is the trailing % intended in the format string? GCC warns about it,
breaking -Werror compilation.
Regards,
Matthias
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]