svn commit: r279982 - head/sys/vm
Ian Lepore
ian at FreeBSD.org
Sat Mar 14 13:00:39 UTC 2015
Author: ian
Date: Sat Mar 14 13:00:37 2015
New Revision: 279982
URL: https://svnweb.freebsd.org/changeset/base/279982
Log:
Revert r279932; this is going to be fixed in the sbuf code instead.
PR: 195668
Modified:
head/sys/vm/vm_phys.c
head/sys/vm/vm_reserv.c
Modified: head/sys/vm/vm_phys.c
==============================================================================
--- head/sys/vm/vm_phys.c Sat Mar 14 12:40:19 2015 (r279981)
+++ head/sys/vm/vm_phys.c Sat Mar 14 13:00:37 2015 (r279982)
@@ -263,7 +263,6 @@ sysctl_vm_phys_free(SYSCTL_HANDLER_ARGS)
}
}
}
- sbuf_putc(&sbuf, 0); /* nullterm */
error = sbuf_finish(&sbuf);
sbuf_delete(&sbuf);
return (error);
@@ -293,7 +292,6 @@ sysctl_vm_phys_segs(SYSCTL_HANDLER_ARGS)
sbuf_printf(&sbuf, "domain: %d\n", seg->domain);
sbuf_printf(&sbuf, "free list: %p\n", seg->free_queues);
}
- sbuf_putc(&sbuf, 0); /* nullterm */
error = sbuf_finish(&sbuf);
sbuf_delete(&sbuf);
return (error);
Modified: head/sys/vm/vm_reserv.c
==============================================================================
--- head/sys/vm/vm_reserv.c Sat Mar 14 12:40:19 2015 (r279981)
+++ head/sys/vm/vm_reserv.c Sat Mar 14 13:00:37 2015 (r279982)
@@ -261,7 +261,6 @@ sysctl_vm_reserv_partpopq(SYSCTL_HANDLER
sbuf_printf(&sbuf, "%5d: %6dK, %6d\n", level,
unused_pages * ((int)PAGE_SIZE / 1024), counter);
}
- sbuf_putc(&sbuf, 0); /* nullterm */
error = sbuf_finish(&sbuf);
sbuf_delete(&sbuf);
return (error);
More information about the svn-src-all
mailing list