if (!tx->send) continue;
                if (!--left) {
-                       return sprintf(page,"tx[%d]:    0x%ld-0x%ld "
+                       return sprintf(page, "tx[%d]:    0x%lx-0x%lx "
                            "(%6ld bytes), rsv %d cps, shp %d cps%s\n",i,
                            (unsigned long) (tx->send - eni_dev->ram),
                            tx->send-eni_dev->ram+tx->words*4-1,tx->words*4,
                        if (--left) continue;
                        length = sprintf(page,"vcc %4d: ",vcc->vci);
                        if (eni_vcc->rx) {
-                               length += sprintf(page+length,"0x%ld-0x%ld "
+                               length += sprintf(page+length, "0x%lx-0x%lx "
                                    "(%6ld bytes)",
                                    (unsigned long) (eni_vcc->recv - eni_dev->ram),
                                    eni_vcc->recv-eni_dev->ram+eni_vcc->words*4-1,