aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/boot/addRamDisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc64/boot/addRamDisk.c')
-rw-r--r--arch/ppc64/boot/addRamDisk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/ppc64/boot/addRamDisk.c b/arch/ppc64/boot/addRamDisk.c
index d99c04a38e46..c02a99952be7 100644
--- a/arch/ppc64/boot/addRamDisk.c
+++ b/arch/ppc64/boot/addRamDisk.c
@@ -163,11 +163,11 @@ int main(int argc, char **argv)
163 fseek(inputVmlinux, 0, SEEK_END); 163 fseek(inputVmlinux, 0, SEEK_END);
164 kernelLen = ftell(inputVmlinux); 164 kernelLen = ftell(inputVmlinux);
165 fseek(inputVmlinux, 0, SEEK_SET); 165 fseek(inputVmlinux, 0, SEEK_SET);
166 printf("kernel file size = %d\n", kernelLen); 166 printf("kernel file size = %lu\n", kernelLen);
167 167
168 actualKernelLen = kernelLen - ElfHeaderSize; 168 actualKernelLen = kernelLen - ElfHeaderSize;
169 169
170 printf("actual kernel length (minus ELF header) = %d\n", actualKernelLen); 170 printf("actual kernel length (minus ELF header) = %lu\n", actualKernelLen);
171 171
172 round = actualKernelLen % 4096; 172 round = actualKernelLen % 4096;
173 roundedKernelLen = actualKernelLen; 173 roundedKernelLen = actualKernelLen;
@@ -262,7 +262,7 @@ int main(int argc, char **argv)
262 death("Could not read hvReleaseData pointer\n", outputVmlinux, out_name); 262 death("Could not read hvReleaseData pointer\n", outputVmlinux, out_name);
263 } 263 }
264 hvReleaseData = ntohl(hvReleaseData); /* Convert to native int */ 264 hvReleaseData = ntohl(hvReleaseData); /* Convert to native int */
265 printf("hvReleaseData is at %08x\n", hvReleaseData); 265 printf("hvReleaseData is at %08lx\n", hvReleaseData);
266 266
267 /* fseek to the hvReleaseData */ 267 /* fseek to the hvReleaseData */
268 fseek(outputVmlinux, ElfHeaderSize + hvReleaseData, SEEK_SET); 268 fseek(outputVmlinux, ElfHeaderSize + hvReleaseData, SEEK_SET);
@@ -298,7 +298,7 @@ int main(int argc, char **argv)
298 if (fwrite(inbuf, 0x18, 1, outputVmlinux) != 1) { 298 if (fwrite(inbuf, 0x18, 1, outputVmlinux) != 1) {
299 death("Could not write naca\n", outputVmlinux, out_name); 299 death("Could not write naca\n", outputVmlinux, out_name);
300 } 300 }
301 printf("Ram Disk of 0x%lx pages is attached to the kernel at offset 0x%08x\n", 301 printf("Ram Disk of 0x%lx pages is attached to the kernel at offset 0x%08lx\n",
302 ramPages, ramStartOffs); 302 ramPages, ramStartOffs);
303 303
304 /* Done */ 304 /* Done */