From b08f39cc4c8c697dcd66b97106b15b5ecd6536d7 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Thu, 4 Feb 2016 17:50:54 -0800 Subject: [PATCH] qcacld-3.0: Add error log in wow periodic pattern handler WoW periodic transmit pattern handler has no error log if given input format is wrong. Add error log message to indicate input is wrong and suggest the correct input format. Change-Id: Ie3a37c7e1a9b9fd8a974c68a5cc7456b1b622168 CRs-Fixed: 973006 --- core/hdd/src/wlan_hdd_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_debugfs.c b/core/hdd/src/wlan_hdd_debugfs.c index 9c862b59e8c3..89aac4e51cc9 100644 --- a/core/hdd/src/wlan_hdd_debugfs.c +++ b/core/hdd/src/wlan_hdd_debugfs.c @@ -502,6 +502,7 @@ static ssize_t __wcnss_patterngen_write(struct file *file, return count; failure: + hdd_err("Invalid input. Input format is: ptrn_idx duration pattern"); qdf_mem_free(cmd); return -EINVAL; }