diff --git a/scst/src/dev_handlers/scst_cdrom.c b/scst/src/dev_handlers/scst_cdrom.c index 7f709ea15..ef0da692c 100644 --- a/scst/src/dev_handlers/scst_cdrom.c +++ b/scst/src/dev_handlers/scst_cdrom.c @@ -83,7 +83,7 @@ static int cdrom_attach(struct scst_device *dev) params = kzalloc(sizeof(*params), GFP_KERNEL); if (params == NULL) { - PRINT_ERROR("Unable to allocate struct cdrom_params (size %d)", + PRINT_ERROR("Unable to allocate struct cdrom_params (size %zd)", sizeof(*params)); res = -ENOMEM; goto out; diff --git a/scst/src/dev_handlers/scst_disk.c b/scst/src/dev_handlers/scst_disk.c index 8ea089c15..8d57af382 100644 --- a/scst/src/dev_handlers/scst_disk.c +++ b/scst/src/dev_handlers/scst_disk.c @@ -181,7 +181,7 @@ static int disk_attach(struct scst_device *dev) params = kzalloc(sizeof(*params), GFP_KERNEL); if (params == NULL) { - PRINT_ERROR("Unable to allocate struct disk_params (size %d)", + PRINT_ERROR("Unable to allocate struct disk_params (size %zd)", sizeof(*params)); res = -ENOMEM; goto out; diff --git a/scst/src/dev_handlers/scst_modisk.c b/scst/src/dev_handlers/scst_modisk.c index b2fcafdf9..bbf5dc3a0 100644 --- a/scst/src/dev_handlers/scst_modisk.c +++ b/scst/src/dev_handlers/scst_modisk.c @@ -168,7 +168,7 @@ static int modisk_attach(struct scst_device *dev) params = kzalloc(sizeof(*params), GFP_KERNEL); if (params == NULL) { - PRINT_ERROR("Unable to allocate struct modisk_params (size %d)", + PRINT_ERROR("Unable to allocate struct modisk_params (size %zd)", sizeof(*params)); res = -ENOMEM; goto out; diff --git a/scst/src/dev_handlers/scst_tape.c b/scst/src/dev_handlers/scst_tape.c index 121d08579..63e727267 100644 --- a/scst/src/dev_handlers/scst_tape.c +++ b/scst/src/dev_handlers/scst_tape.c @@ -171,7 +171,7 @@ static int tape_attach(struct scst_device *dev) params = kzalloc(sizeof(*params), GFP_KERNEL); if (params == NULL) { - PRINT_ERROR("Unable to allocate struct tape_params (size %d)", + PRINT_ERROR("Unable to allocate struct tape_params (size %zd)", sizeof(*params)); res = -ENOMEM; goto out; diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index efe96b5fb..eebc25e62 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -842,8 +842,8 @@ static struct scst_vdisk_thr *vdisk_init_thr_data( res = kmem_cache_zalloc(vdisk_thr_cachep, gfp_mask); if (res == NULL) { - PRINT_ERROR("Unable to allocate struct scst_vdisk_thr (size %d)", - sizeof(*res)); + PRINT_ERROR("Unable to allocate struct scst_vdisk_thr" + " (size %zd)", sizeof(*res)); goto out; } diff --git a/scst/src/scst_mem.c b/scst/src/scst_mem.c index d29b7c1f8..a2740530c 100644 --- a/scst/src/scst_mem.c +++ b/scst/src/scst_mem.c @@ -1647,7 +1647,7 @@ struct sgv_pool *sgv_pool_create(const char *name, pool = kzalloc(sizeof(*pool), GFP_KERNEL); if (pool == NULL) { - PRINT_ERROR("Allocation of sgv_pool failed (size %d)", + PRINT_ERROR("Allocation of sgv_pool failed (size %zd)", sizeof(*pool)); goto out_unlock; }