diff mbox series

[1/2] s3: fix incorrect error messages for s2idle_residency

Message ID 20211130183057.174890-1-alex.hung@canonical.com
State Accepted
Headers show
Series [1/2] s3: fix incorrect error messages for s2idle_residency | expand

Commit Message

Alex Hung Nov. 30, 2021, 6:30 p.m. UTC
Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 src/acpi/s3/s3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ivan Hu Dec. 1, 2021, 3:11 a.m. UTC | #1
On 12/1/21 2:30 AM, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/acpi/s3/s3.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c
> index d77108a1..c619d30d 100644
> --- a/src/acpi/s3/s3.c
> +++ b/src/acpi/s3/s3.c
> @@ -388,7 +388,7 @@ static int s3_do_suspend_resume(fwts_framework *fw,
>  			(*s2idle_errors)++;
>  			fwts_failed(fw, LOG_LEVEL_HIGH, "S2idleNotDeepest",
>  				"Expected %s to increase from %" PRIu32 ", got %" PRIu32 ".",
> -				PM_S2IDLE_SLP_S0, residency, *s2idle_residency);
> +				PM_S2IDLE_SLP_S0, *s2idle_residency, residency);
>  		}
>  		*s2idle_residency = residency;
>  	}
> 


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

Patch

diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c
index d77108a1..c619d30d 100644
--- a/src/acpi/s3/s3.c
+++ b/src/acpi/s3/s3.c
@@ -388,7 +388,7 @@  static int s3_do_suspend_resume(fwts_framework *fw,
 			(*s2idle_errors)++;
 			fwts_failed(fw, LOG_LEVEL_HIGH, "S2idleNotDeepest",
 				"Expected %s to increase from %" PRIu32 ", got %" PRIu32 ".",
-				PM_S2IDLE_SLP_S0, residency, *s2idle_residency);
+				PM_S2IDLE_SLP_S0, *s2idle_residency, residency);
 		}
 		*s2idle_residency = residency;
 	}