new patch below

On 09:03 Thu 28 Mar , Alexander Hall wrote:
> On 03/28/13 08:27, Sergey Bronnikov wrote:
> >please commit
> >
> >On 17:20 Sat 23 Mar , Sergey Bronnikov wrote:
> >>Hi
> >>
> >>I have found that several kernel messages doesn't contain newline character.
> >>Patches attached.
> 
> For the record, that patch sure looks reversed... Eh, and redundant. :-)
> 
> Preferrably, use `cvs diff -uNp`.
> 
> /Alexander

Index: sys/arch/amd64/amd64/acpi_machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/acpi_machdep.c,v
retrieving revision 1.52
diff -u -p -u -p -r1.52 acpi_machdep.c
--- sys/arch/amd64/amd64/acpi_machdep.c 27 Nov 2012 17:38:45 -0000      1.52
+++ sys/arch/amd64/amd64/acpi_machdep.c 28 Mar 2013 15:28:49 -0000
@@ -300,7 +300,7 @@ acpi_sleep_cpu(struct acpi_softc *sc, in
                if (state == ACPI_STATE_S4) {
                        uvm_pmr_zero_everything();
                        if (hibernate_suspend()) {
-                               printf("%s: hibernate_suspend failed",
+                               printf("%s: hibernate_suspend failed\n",
                                    DEVNAME(sc));
                                hibernate_free();
                                uvm_pmr_dirty_everything();
@@ -318,7 +318,7 @@ acpi_sleep_cpu(struct acpi_softc *sc, in
                boothowto &= ~RB_POWERDOWN;
 
                acpi_sleep_pm(sc, state);
-               printf("%s: acpi_sleep_pm failed", DEVNAME(sc));
+               printf("%s: acpi_sleep_pm failed\n", DEVNAME(sc));
                return (ECANCELED);
        }
        /* Resume path */


Index: sys/arch/i386/i386/acpi_machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/i386/acpi_machdep.c,v
retrieving revision 1.46
diff -u -p -u -p -r1.46 acpi_machdep.c
--- sys/arch/i386/i386/acpi_machdep.c   27 Nov 2012 17:38:45 -0000      1.46
+++ sys/arch/i386/i386/acpi_machdep.c   28 Mar 2013 15:30:51 -0000
@@ -325,7 +325,7 @@ acpi_sleep_cpu(struct acpi_softc *sc, in
                if (state == ACPI_STATE_S4) {
                        uvm_pmr_zero_everything();
                        if (hibernate_suspend()) {
-                               printf("%s: hibernate_suspend failed",
+                               printf("%s: hibernate_suspend failed\n",
                                    DEVNAME(sc));
                                hibernate_free();
                                uvm_pmr_dirty_everything();
@@ -343,7 +343,7 @@ acpi_sleep_cpu(struct acpi_softc *sc, in
                boothowto &= ~RB_POWERDOWN;
 
                acpi_sleep_pm(sc, state);
-               printf("%s: acpi_sleep_pm failed", DEVNAME(sc));
+               printf("%s: acpi_sleep_pm failed\n", DEVNAME(sc));
                return (ECANCELED);
        }
        /* Resume path */


-- 
sergeyb@
Index: sys/arch/amd64/amd64/acpi_machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/acpi_machdep.c,v
retrieving revision 1.52
diff -u -p -u -p -r1.52 acpi_machdep.c
--- sys/arch/amd64/amd64/acpi_machdep.c 27 Nov 2012 17:38:45 -0000      1.52
+++ sys/arch/amd64/amd64/acpi_machdep.c 28 Mar 2013 15:28:49 -0000
@@ -300,7 +300,7 @@ acpi_sleep_cpu(struct acpi_softc *sc, in
                if (state == ACPI_STATE_S4) {
                        uvm_pmr_zero_everything();
                        if (hibernate_suspend()) {
-                               printf("%s: hibernate_suspend failed",
+                               printf("%s: hibernate_suspend failed\n",
                                    DEVNAME(sc));
                                hibernate_free();
                                uvm_pmr_dirty_everything();
@@ -318,7 +318,7 @@ acpi_sleep_cpu(struct acpi_softc *sc, in
                boothowto &= ~RB_POWERDOWN;
 
                acpi_sleep_pm(sc, state);
-               printf("%s: acpi_sleep_pm failed", DEVNAME(sc));
+               printf("%s: acpi_sleep_pm failed\n", DEVNAME(sc));
                return (ECANCELED);
        }
        /* Resume path */
Index: sys/arch/i386/i386/acpi_machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/i386/acpi_machdep.c,v
retrieving revision 1.46
diff -u -p -u -p -r1.46 acpi_machdep.c
--- sys/arch/i386/i386/acpi_machdep.c   27 Nov 2012 17:38:45 -0000      1.46
+++ sys/arch/i386/i386/acpi_machdep.c   28 Mar 2013 15:30:51 -0000
@@ -325,7 +325,7 @@ acpi_sleep_cpu(struct acpi_softc *sc, in
                if (state == ACPI_STATE_S4) {
                        uvm_pmr_zero_everything();
                        if (hibernate_suspend()) {
-                               printf("%s: hibernate_suspend failed",
+                               printf("%s: hibernate_suspend failed\n",
                                    DEVNAME(sc));
                                hibernate_free();
                                uvm_pmr_dirty_everything();
@@ -343,7 +343,7 @@ acpi_sleep_cpu(struct acpi_softc *sc, in
                boothowto &= ~RB_POWERDOWN;
 
                acpi_sleep_pm(sc, state);
-               printf("%s: acpi_sleep_pm failed", DEVNAME(sc));
+               printf("%s: acpi_sleep_pm failed\n", DEVNAME(sc));
                return (ECANCELED);
        }
        /* Resume path */

Reply via email to