From af00898b5d7bac6734c407c1d2f4362a08fe4532 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Thu, 26 Dec 2019 18:25:07 +0000 Subject: [PATCH] gone_in(9): Trivial string grammar and style cleanups --- sys/kern/subr_bus.c | 4 ++-- sys/sys/systm.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index f36cc881f182..9dbd98e5ec22 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -5971,7 +5971,7 @@ _gone_in(int major, const char *msg) gone_panic(major, P_OSREL_MAJOR(__FreeBSD_version), msg); if (P_OSREL_MAJOR(__FreeBSD_version) >= major) - printf("Obsolete code will removed soon: %s\n", msg); + printf("Obsolete code will be removed soon: %s\n", msg); else printf("Deprecated code (to be removed in FreeBSD %d): %s\n", major, msg); @@ -5984,7 +5984,7 @@ _gone_in_dev(device_t dev, int major, const char *msg) gone_panic(major, P_OSREL_MAJOR(__FreeBSD_version), msg); if (P_OSREL_MAJOR(__FreeBSD_version) >= major) device_printf(dev, - "Obsolete code will removed soon: %s\n", msg); + "Obsolete code will be removed soon: %s\n", msg); else device_printf(dev, "Deprecated code (to be removed in FreeBSD %d): %s\n", diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 2df1b6c38f77..53a82adca348 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -593,7 +593,7 @@ void _gone_in_dev(struct device *dev, int major, const char *msg); #ifdef NO_OBSOLETE_CODE #define __gone_ok(m, msg) \ _Static_assert(m < P_OSREL_MAJOR(__FreeBSD_version)), \ - "Obsolete code" msg); + "Obsolete code: " msg); #else #define __gone_ok(m, msg) #endif