]> git.cameronkatri.com Git - freebsd-patches.git/commitdiff
Update libxo acpiconf patch
authorCameron Katri <me@cameronkatri.com>
Sun, 6 Jun 2021 18:32:22 +0000 (14:32 -0400)
committerCameron Katri <me@cameronkatri.com>
Sun, 6 Jun 2021 18:32:22 +0000 (14:32 -0400)
acpiconf-8-Add-libxo-3-support.patch

index 641c18f4b544b4eaf12c7963051d0064b84712f2..b65739c88653b4349202265cc4d208444bc5d55e 100644 (file)
@@ -1,4 +1,4 @@
-From b01ad1d67883953d2f0f22b792a8613b8c31d28d Mon Sep 17 00:00:00 2001
+From fbb0ec5e3cc2f5b6d9cd023fd5cf7ae38b97ad6a Mon Sep 17 00:00:00 2001
 From: Cameron Katri <me@cameronkatri.com>
 Date: Thu, 20 May 2021 15:03:17 -0400
 Subject: [PATCH] acpiconf(8): Add libxo(3) support
@@ -65,7 +65,7 @@ index 53888d8489e..7e4e7c9564c 100644
  .Xr acpidump 8 ,
  .Xr apm 8 ,
 diff --git a/usr.sbin/acpi/acpiconf/acpiconf.c b/usr.sbin/acpi/acpiconf/acpiconf.c
-index 8a31657fb98..35c40ff1ab7 100644
+index 8a31657fb98..f4d5e06b0d3 100644
 --- a/usr.sbin/acpi/acpiconf/acpiconf.c
 +++ b/usr.sbin/acpi/acpiconf/acpiconf.c
 @@ -37,6 +37,7 @@
@@ -192,9 +192,9 @@ index 8a31657fb98..35c40ff1ab7 100644
 -      printf("Serial number:\t\t%s\n", battio.bix.serial);
 -      printf("Type:\t\t\t%s\n", battio.bix.type);
 -      printf("OEM info:\t\t%s\n", battio.bix.oeminfo);
-+      xo_emit("Low/warn granularity:{P:\t}{:granularity-lw/%d}{Uw:/%sh}\n",
++      xo_emit("{Lc:Low\\/warn granularity}{P:\t}{:granularity-lw/%d}{Uw:/%sh}\n",
 +          battio.bix.gra1, pwr_units);
-+      xo_emit("Warn/full granularity:{P:\t}{:granularity-wf/%d}{Uw:/%sh}\n",
++      xo_emit("{Lc:Warn\\/full granularity}{P:\t}{:granularity-wf/%d}{Uw:/%sh}\n",
 +          battio.bix.gra2, pwr_units);
 +      xo_emit("{Lc:Model number}{P:\t\t}{:model}\n", battio.bix.model);
 +      xo_emit("{Lc:Serial number}{P:\t\t}{:serial}\n", battio.bix.serial);