@@ -293,7 +293,7 @@ static __init int hmat_parse_locality(union acpi_subtable_headers *header,
293
293
u8 type , mem_hier ;
294
294
295
295
if (hmat_loc -> header .length < sizeof (* hmat_loc )) {
296
- pr_notice ("HMAT: Unexpected locality header length: %d \n" ,
296
+ pr_notice ("HMAT: Unexpected locality header length: %u \n" ,
297
297
hmat_loc -> header .length );
298
298
return - EINVAL ;
299
299
}
@@ -305,12 +305,12 @@ static __init int hmat_parse_locality(union acpi_subtable_headers *header,
305
305
total_size = sizeof (* hmat_loc ) + sizeof (* entries ) * ipds * tpds +
306
306
sizeof (* inits ) * ipds + sizeof (* targs ) * tpds ;
307
307
if (hmat_loc -> header .length < total_size ) {
308
- pr_notice ("HMAT: Unexpected locality header length:%d , minimum required:%d \n" ,
308
+ pr_notice ("HMAT: Unexpected locality header length:%u , minimum required:%u \n" ,
309
309
hmat_loc -> header .length , total_size );
310
310
return - EINVAL ;
311
311
}
312
312
313
- pr_info ("HMAT: Locality: Flags:%02x Type:%s Initiator Domains:%d Target Domains:%d Base:%lld\n" ,
313
+ pr_info ("HMAT: Locality: Flags:%02x Type:%s Initiator Domains:%u Target Domains:%u Base:%lld\n" ,
314
314
hmat_loc -> flags , hmat_data_type (type ), ipds , tpds ,
315
315
hmat_loc -> entry_base_unit );
316
316
@@ -323,7 +323,7 @@ static __init int hmat_parse_locality(union acpi_subtable_headers *header,
323
323
value = hmat_normalize (entries [init * tpds + targ ],
324
324
hmat_loc -> entry_base_unit ,
325
325
type );
326
- pr_info (" Initiator-Target[%d-%d ]:%d %s\n" ,
326
+ pr_info (" Initiator-Target[%u-%u ]:%u %s\n" ,
327
327
inits [init ], targs [targ ], value ,
328
328
hmat_data_type_suffix (type ));
329
329
@@ -350,13 +350,13 @@ static __init int hmat_parse_cache(union acpi_subtable_headers *header,
350
350
u32 attrs ;
351
351
352
352
if (cache -> header .length < sizeof (* cache )) {
353
- pr_notice ("HMAT: Unexpected cache header length: %d \n" ,
353
+ pr_notice ("HMAT: Unexpected cache header length: %u \n" ,
354
354
cache -> header .length );
355
355
return - EINVAL ;
356
356
}
357
357
358
358
attrs = cache -> cache_attributes ;
359
- pr_info ("HMAT: Cache: Domain:%d Size:%llu Attrs:%08x SMBIOS Handles:%d\n" ,
359
+ pr_info ("HMAT: Cache: Domain:%u Size:%llu Attrs:%08x SMBIOS Handles:%d\n" ,
360
360
cache -> memory_PD , cache -> cache_size , attrs ,
361
361
cache -> number_of_SMBIOShandles );
362
362
@@ -411,17 +411,17 @@ static int __init hmat_parse_proximity_domain(union acpi_subtable_headers *heade
411
411
struct memory_target * target = NULL ;
412
412
413
413
if (p -> header .length != sizeof (* p )) {
414
- pr_notice ("HMAT: Unexpected address range header length: %d \n" ,
414
+ pr_notice ("HMAT: Unexpected address range header length: %u \n" ,
415
415
p -> header .length );
416
416
return - EINVAL ;
417
417
}
418
418
419
419
if (hmat_revision == 1 )
420
- pr_info ("HMAT: Memory (%#llx length %#llx) Flags:%04x Processor Domain:%d Memory Domain:%d \n" ,
420
+ pr_info ("HMAT: Memory (%#llx length %#llx) Flags:%04x Processor Domain:%u Memory Domain:%u \n" ,
421
421
p -> reserved3 , p -> reserved4 , p -> flags , p -> processor_PD ,
422
422
p -> memory_PD );
423
423
else
424
- pr_info ("HMAT: Memory Flags:%04x Processor Domain:%d Memory Domain:%d \n" ,
424
+ pr_info ("HMAT: Memory Flags:%04x Processor Domain:%u Memory Domain:%u \n" ,
425
425
p -> flags , p -> processor_PD , p -> memory_PD );
426
426
427
427
if (p -> flags & ACPI_HMAT_MEMORY_PD_VALID && hmat_revision == 1 ) {
0 commit comments