(unsigned short) (virtpcidev->scsi.max.max_io_size / PAGE_SIZE);
        if (scsihost->sg_tablesize > MAX_PHYS_INFO)
                scsihost->sg_tablesize = MAX_PHYS_INFO;
-       LOGINF("scsihost->max_channel=%u, max_id=%u, max_lun=%u, cmd_per_lun=%u, max_sectors=%hu, sg_tablesize=%hu\n",
+       LOGINF("scsihost->max_channel=%u, max_id=%u, max_lun=%llu, cmd_per_lun=%u, max_sectors=%hu, sg_tablesize=%hu\n",
             scsihost->max_channel, scsihost->max_id, scsihost->max_lun,
             scsihost->cmd_per_lun, scsihost->max_sectors,
             scsihost->sg_tablesize);
        int notifyresult = 0xffff;
        wait_queue_head_t notifyevent;
 
-       LOGINF("TaskMgmt:%d %d:%d:%d\n", tasktype,
+       LOGINF("TaskMgmt:%d %d:%d:%llu\n", tasktype,
               scsidev->channel, scsidev->id, scsidev->lun);
 
        if (virthbainfo->serverdown || virthbainfo->serverchangingstate) {
 
                if (atomic_read(&vdisk->error_count) < VIRTHBA_ERROR_COUNT) {
                        atomic_inc(&vdisk->error_count);
-                       LOGERR("SCSICMD ****FAILED scsicmd:0x%p op:0x%x <%d:%d:%d:%d> 0x%x-0x%x-0x%x-0x%x-0x%x.\n",
+                       LOGERR("SCSICMD ****FAILED scsicmd:0x%p op:0x%x <%d:%d:%d:%llu> 0x%x-0x%x-0x%x-0x%x-0x%x.\n",
                               scsicmd, cmdrsp->scsi.cmnd[0],
                               scsidev->host->host_no, scsidev->id,
                               scsidev->channel, scsidev->lun,
                               sd->AdditionalSenseCodeQualifier);
                        if (atomic_read(&vdisk->error_count) ==
                            VIRTHBA_ERROR_COUNT) {
-                               LOGERR("Throtling SCSICMD errors disk <%d:%d:%d:%d>\n",
+                               LOGERR("Throtling SCSICMD errors disk <%d:%d:%d:%llu>\n",
                                     scsidev->host->host_no, scsidev->id,
                                     scsidev->channel, scsidev->lun);
                        }