Fix LINT build.
authorSascha Wildner <saw@online.de>
Fri, 6 May 2011 21:22:03 +0000 (23:22 +0200)
committerSascha Wildner <saw@online.de>
Fri, 6 May 2011 21:22:03 +0000 (23:22 +0200)
sys/dev/crypto/ubsec/ubsec.c
sys/kern/kern_checkpoint.c

index 65a4473..065877a 100644 (file)
@@ -2737,14 +2737,16 @@ ubsec_kprocess_rsapriv(struct ubsec_softc *sc, struct cryptkop *krp, int hint)
 
 #ifdef DIAGNOSTIC
        if (rp->rpr_msgin.dma_paddr & 3 || rp->rpr_msgin.dma_size & 3) {
-               panic("%s: rsapriv: invalid msgin %x(0x%lx)",
+               panic("%s: rsapriv: invalid msgin %x(0x%jx)",
                    device_get_nameunit(sc->sc_dev),
-                   rp->rpr_msgin.dma_paddr, rp->rpr_msgin.dma_size);
+                   rp->rpr_msgin.dma_paddr,
+                   (uintmax_t)rp->rpr_msgin.dma_size);
        }
        if (rp->rpr_msgout.dma_paddr & 3 || rp->rpr_msgout.dma_size & 3) {
-               panic("%s: rsapriv: invalid msgout %x(0x%lx)",
+               panic("%s: rsapriv: invalid msgout %x(0x%jx)",
                    device_get_nameunit(sc->sc_dev),
-                   rp->rpr_msgout.dma_paddr, rp->rpr_msgout.dma_size);
+                   rp->rpr_msgout.dma_paddr,
+                   (uintmax_t)rp->rpr_msgout.dma_size);
        }
 #endif
 
index 4fe97c7..a77bfa2 100644 (file)
@@ -163,10 +163,10 @@ elf_getphdrs(struct file *fp, Elf_Phdr *phdr, size_t nbyte)
        PRINTF(("headers section:\n"));
        for (i = 0; i < nheaders; i++) {
                PRINTF(("entry type:   %d\n", phdr[i].p_type));
-               PRINTF(("file offset:  %ld\n", phdr[i].p_offset));
+               PRINTF(("file offset:  %jd\n", (intmax_t)phdr[i].p_offset));
                PRINTF(("virt address: %p\n", (uint32_t *)phdr[i].p_vaddr));
-               PRINTF(("file size:    %ld\n", phdr[i].p_filesz));
-               PRINTF(("memory size:  %ld\n", phdr[i].p_memsz));
+               PRINTF(("file size:    %jd\n", (intmax_t)phdr[i].p_filesz));
+               PRINTF(("memory size:  %jd\n", (intmax_t)phdr[i].p_memsz));
                PRINTF(("\n"));
        }
  done: