Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13700
b: refs/heads/master
c: c44bc68
h: refs/heads/master
v: v3
  • Loading branch information
Olaf Hering authored and Paul Mackerras committed Nov 10, 2005
1 parent a746a1d commit b9df78a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 681c774d0fb59c9b9525c2879d1cfae29c2f7866
refs/heads/master: c44bc68dc0d2ca95e48b7242fef48200cd03352d
8 changes: 4 additions & 4 deletions trunk/arch/ppc64/boot/addRamDisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ int main(int argc, char **argv)
fseek(inputVmlinux, 0, SEEK_END);
kernelLen = ftell(inputVmlinux);
fseek(inputVmlinux, 0, SEEK_SET);
printf("kernel file size = %d\n", kernelLen);
printf("kernel file size = %lu\n", kernelLen);

actualKernelLen = kernelLen - ElfHeaderSize;

printf("actual kernel length (minus ELF header) = %d\n", actualKernelLen);
printf("actual kernel length (minus ELF header) = %lu\n", actualKernelLen);

round = actualKernelLen % 4096;
roundedKernelLen = actualKernelLen;
Expand Down Expand Up @@ -262,7 +262,7 @@ int main(int argc, char **argv)
death("Could not read hvReleaseData pointer\n", outputVmlinux, out_name);
}
hvReleaseData = ntohl(hvReleaseData); /* Convert to native int */
printf("hvReleaseData is at %08x\n", hvReleaseData);
printf("hvReleaseData is at %08lx\n", hvReleaseData);

/* fseek to the hvReleaseData */
fseek(outputVmlinux, ElfHeaderSize + hvReleaseData, SEEK_SET);
Expand Down Expand Up @@ -298,7 +298,7 @@ int main(int argc, char **argv)
if (fwrite(inbuf, 0x18, 1, outputVmlinux) != 1) {
death("Could not write naca\n", outputVmlinux, out_name);
}
printf("Ram Disk of 0x%lx pages is attached to the kernel at offset 0x%08x\n",
printf("Ram Disk of 0x%lx pages is attached to the kernel at offset 0x%08lx\n",
ramPages, ramStartOffs);

/* Done */
Expand Down

0 comments on commit b9df78a

Please sign in to comment.