Fixed 64 bit warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34285 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1409c878f8
commit
4dafc3b298
@ -71,13 +71,13 @@ dump_image_info(const char *filename)
|
|||||||
printf(" version: %d\n", (int)header.version);
|
printf(" version: %d\n", (int)header.version);
|
||||||
printf(" flags: %d\n", (int)header.flags);
|
printf(" flags: %d\n", (int)header.flags);
|
||||||
printf(" capacity: %d\n", (int)header.capacity);
|
printf(" capacity: %d\n", (int)header.capacity);
|
||||||
printf(" grainSize: %lld\n", header.grainSize);
|
printf(" grainSize: %lld\n", (long long)header.grainSize);
|
||||||
printf(" descriptorOffset: %lld\n", header.descriptorOffset);
|
printf(" descriptorOffset: %lld\n", (long long)header.descriptorOffset);
|
||||||
printf(" descriptorSize: %lld\n", header.descriptorSize);
|
printf(" descriptorSize: %lld\n", (long long)header.descriptorSize);
|
||||||
printf(" numGTEsPerGT: %u\n", (unsigned int)header.numGTEsPerGT);
|
printf(" numGTEsPerGT: %u\n", (unsigned int)header.numGTEsPerGT);
|
||||||
printf(" rgdOffset: %lld\n", header.rgdOffset);
|
printf(" rgdOffset: %lld\n", (long long)header.rgdOffset);
|
||||||
printf(" gdOffset: %lld\n", header.gdOffset);
|
printf(" gdOffset: %lld\n", (long long)header.gdOffset);
|
||||||
printf(" overHead: %lld\n", header.overHead);
|
printf(" overHead: %lld\n", (long long)header.overHead);
|
||||||
printf(" uncleanShutdown: %s\n",
|
printf(" uncleanShutdown: %s\n",
|
||||||
header.uncleanShutdown ? "yes" : "no");
|
header.uncleanShutdown ? "yes" : "no");
|
||||||
printf(" singleEndLineChar: '%c'\n", header.singleEndLineChar);
|
printf(" singleEndLineChar: '%c'\n", header.singleEndLineChar);
|
||||||
@ -348,7 +348,8 @@ main(int argc, char *argv[])
|
|||||||
sprintf(desc + strlen(desc),
|
sprintf(desc + strlen(desc),
|
||||||
"# Extent Description\n"
|
"# Extent Description\n"
|
||||||
"RW %llu FLAT \"%s\" %llu\n",
|
"RW %llu FLAT \"%s\" %llu\n",
|
||||||
actualImageSize / 512, name, headerSize / 512);
|
(unsigned long long)actualImageSize / 512, name,
|
||||||
|
(unsigned long long)headerSize / 512);
|
||||||
sprintf(desc + strlen(desc),
|
sprintf(desc + strlen(desc),
|
||||||
"# Disk Data Base\n"
|
"# Disk Data Base\n"
|
||||||
"ddb.toolsVersion = \"0\"\n"
|
"ddb.toolsVersion = \"0\"\n"
|
||||||
@ -357,13 +358,14 @@ main(int argc, char *argv[])
|
|||||||
"ddb.adapterType = \"ide\"\n"
|
"ddb.adapterType = \"ide\"\n"
|
||||||
"ddb.geometry.heads = \"%llu\"\n"
|
"ddb.geometry.heads = \"%llu\"\n"
|
||||||
"ddb.geometry.cylinders = \"%llu\"\n",
|
"ddb.geometry.cylinders = \"%llu\"\n",
|
||||||
sectors, heads, cylinders);
|
(unsigned long long)sectors, (unsigned long long)heads,
|
||||||
|
(unsigned long long)cylinders);
|
||||||
|
|
||||||
if (uuid == NULL) {
|
if (uuid == NULL) {
|
||||||
sprintf(desc + strlen(desc),
|
sprintf(desc + strlen(desc),
|
||||||
"ddb.uuid.image=\"%08llx-%04llx-%04llx-%04llx-%012llx\"\n",
|
"ddb.uuid.image=\"%08llx-%04llx-%04llx-%04llx-%012llx\"\n",
|
||||||
uuid1 & 0xffffffff, uuid2 & 0xffff, uuid3 & 0xffff, uuid4 & 0xffff,
|
uuid1 & 0xffffffffLL, uuid2 & 0xffffLL, uuid3 & 0xffffLL,
|
||||||
uuid5 & 0xffffffffffffLL);
|
uuid4 & 0xffffLL, uuid5 & 0xffffffffffffLL);
|
||||||
} else
|
} else
|
||||||
sprintf(desc + strlen(desc), "ddb.uuid.image=\"%s\"\n", uuid);
|
sprintf(desc + strlen(desc), "ddb.uuid.image=\"%s\"\n", uuid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user