From 7862ff2483d28444a3674d3a27b98cd27c8b1198 Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Mon, 14 Dec 2020 10:36:42 -0800 Subject: [PATCH] cnss2: Fix a print error in time sync Print proper values for host time and device time from an error handling routine during time sync update. Change-Id: Ib8d9d4fb86d4001b0e2b7d62bc2ae381616f3df6 Signed-off-by: Yue Ma --- drivers/net/wireless/cnss2/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/cnss2/pci.c b/drivers/net/wireless/cnss2/pci.c index baddb51e90fc..d827278e1873 100644 --- a/drivers/net/wireless/cnss2/pci.c +++ b/drivers/net/wireless/cnss2/pci.c @@ -1652,7 +1652,8 @@ static int cnss_pci_update_timestamp(struct cnss_pci_data *pci_priv) goto force_wake_put; if (host_time_us < device_time_us) { - cnss_pr_err("Host time (%llu us) is smaller than device time (%llu us), stop\n"); + cnss_pr_err("Host time (%llu us) is smaller than device time (%llu us), stop\n", + host_time_us, device_time_us); ret = -EINVAL; goto force_wake_put; }