summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/dbstats.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2019-08-16 14:43:23 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-08-21 00:00:36 +0200
commit231ec06e793891071e491e574fe351835aeb9c5c (patch)
tree12672d77cb6f123f6c6bb2de5640a3ea6927f886 /drivers/acpi/acpica/dbstats.c
parent779cc7ce3dc519b05f274b79fb5a6c1703f373b5 (diff)
ACPICA: Fix issues with arg types within printf format strings
ACPICA commit db2638ccaac84b61e92f34d60c3630ff5217f852 Link: https://github.com/acpica/acpica/commit/db2638cc Link: https://github.com/acpica/acpica/commit/634c3085 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/dbstats.c')
-rw-r--r--drivers/acpi/acpica/dbstats.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/acpi/acpica/dbstats.c b/drivers/acpi/acpica/dbstats.c
index bf620937c79b..4f00351dcbb1 100644
--- a/drivers/acpi/acpica/dbstats.c
+++ b/drivers/acpi/acpica/dbstats.c
@@ -341,17 +341,17 @@ acpi_status acpi_db_display_statistics(char *type_arg)
"ACPI_TYPE", "NODES", "OBJECTS");
for (i = 0; i < ACPI_TYPE_NS_NODE_MAX; i++) {
- acpi_os_printf("%16.16s % 10ld% 10ld\n",
+ acpi_os_printf("%16.16s % 10u% 10u\n",
acpi_ut_get_type_name(i),
acpi_gbl_node_type_count[i],
acpi_gbl_obj_type_count[i]);
}
- acpi_os_printf("%16.16s % 10ld% 10ld\n", "Misc/Unknown",
+ acpi_os_printf("%16.16s % 10u% 10u\n", "Misc/Unknown",
acpi_gbl_node_type_count_misc,
acpi_gbl_obj_type_count_misc);
- acpi_os_printf("%16.16s % 10ld% 10ld\n", "TOTALS:",
+ acpi_os_printf("%16.16s % 10u% 10u\n", "TOTALS:",
acpi_gbl_num_nodes, acpi_gbl_num_objects);
break;
@@ -379,18 +379,16 @@ acpi_status acpi_db_display_statistics(char *type_arg)
case CMD_STAT_MISC:
acpi_os_printf("\nMiscellaneous Statistics:\n\n");
- acpi_os_printf("Calls to AcpiPsFind:.. ........% 7ld\n",
- acpi_gbl_ps_find_count);
- acpi_os_printf("Calls to AcpiNsLookup:..........% 7ld\n",
- acpi_gbl_ns_lookup_count);
+ acpi_os_printf("%-28s: %7lu\n", "Calls to AcpiPsFind",
+ (u64)acpi_gbl_ps_find_count);
+ acpi_os_printf("%-28s: %7lu\n", "Calls to AcpiNsLookup",
+ (u64)acpi_gbl_ns_lookup_count);
- acpi_os_printf("\n");
-
- acpi_os_printf("Mutex usage:\n\n");
+ acpi_os_printf("\nMutex usage:\n\n");
for (i = 0; i < ACPI_NUM_MUTEX; i++) {
- acpi_os_printf("%-28s: % 7ld\n",
+ acpi_os_printf("%-28s: %7lu\n",
acpi_ut_get_mutex_name(i),
- acpi_gbl_mutex_info[i].use_count);
+ (u64)acpi_gbl_mutex_info[i].use_count);
}
break;