acpi: s3: fix typo from 6b94bb6a4b13e
diff mbox series

Message ID 20190918093351.9675-1-alex.hung@canonical.com
State Accepted
Headers show
Series
  • acpi: s3: fix typo from 6b94bb6a4b13e
Related show

Commit Message

Alex Hung Sept. 18, 2019, 9:33 a.m. UTC
Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 src/acpi/s3/s3.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Colin King Sept. 24, 2019, 3:16 p.m. UTC | #1
On 18/09/2019 10:33, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/acpi/s3/s3.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c
> index 3a57825a..6664db2c 100644
> --- a/src/acpi/s3/s3.c
> +++ b/src/acpi/s3/s3.c
> @@ -32,7 +32,7 @@
>  
>  #define PM_SUSPEND_PMUTILS		"pm-suspend"
>  #define PM_SUSPEND_HYBRID_PMUTILS	"pm-suspend-hybrid"
> -#define PM_SUPEND_PATH			"/sys/power/mem_sleep"
> +#define PM_SUSPEND_PATH			"/sys/power/mem_sleep"
>  
>  static char sleep_type[7];
>  
> @@ -65,7 +65,7 @@ static int s3_init(fwts_framework *fw)
>  		return FWTS_ERROR;
>  	}
>  
> -	str = fwts_get(PM_SUPEND_PATH);
> +	str = fwts_get(PM_SUSPEND_PATH);
>  	if (str && strstr(str, "[s2idle]")) {
>  		strncpy(sleep_type, "s2idle", strlen("s2idle") + 1);
>  		free(str);
> 

Good catch!

Acked-by: Colin Ian King <colin.king@canonical.com>
ivanhu Sept. 25, 2019, 3:26 a.m. UTC | #2
On 9/18/19 5:33 PM, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/acpi/s3/s3.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c
> index 3a57825a..6664db2c 100644
> --- a/src/acpi/s3/s3.c
> +++ b/src/acpi/s3/s3.c
> @@ -32,7 +32,7 @@
>  
>  #define PM_SUSPEND_PMUTILS		"pm-suspend"
>  #define PM_SUSPEND_HYBRID_PMUTILS	"pm-suspend-hybrid"
> -#define PM_SUPEND_PATH			"/sys/power/mem_sleep"
> +#define PM_SUSPEND_PATH			"/sys/power/mem_sleep"
>  
>  static char sleep_type[7];
>  
> @@ -65,7 +65,7 @@ static int s3_init(fwts_framework *fw)
>  		return FWTS_ERROR;
>  	}
>  
> -	str = fwts_get(PM_SUPEND_PATH);
> +	str = fwts_get(PM_SUSPEND_PATH);
>  	if (str && strstr(str, "[s2idle]")) {
>  		strncpy(sleep_type, "s2idle", strlen("s2idle") + 1);
>  		free(str);


Acked-by: Ivan Hu <ivan.hu@canonical.com>

Patch
diff mbox series

diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c
index 3a57825a..6664db2c 100644
--- a/src/acpi/s3/s3.c
+++ b/src/acpi/s3/s3.c
@@ -32,7 +32,7 @@ 
 
 #define PM_SUSPEND_PMUTILS		"pm-suspend"
 #define PM_SUSPEND_HYBRID_PMUTILS	"pm-suspend-hybrid"
-#define PM_SUPEND_PATH			"/sys/power/mem_sleep"
+#define PM_SUSPEND_PATH			"/sys/power/mem_sleep"
 
 static char sleep_type[7];
 
@@ -65,7 +65,7 @@  static int s3_init(fwts_framework *fw)
 		return FWTS_ERROR;
 	}
 
-	str = fwts_get(PM_SUPEND_PATH);
+	str = fwts_get(PM_SUSPEND_PATH);
 	if (str && strstr(str, "[s2idle]")) {
 		strncpy(sleep_type, "s2idle", strlen("s2idle") + 1);
 		free(str);