summaryrefslogtreecommitdiff
path: root/sys/dev/uart/uart_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/uart/uart_subr.c')
-rw-r--r--sys/dev/uart/uart_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/uart/uart_subr.c b/sys/dev/uart/uart_subr.c
index 0277b2137179..d1e408cba692 100644
--- a/sys/dev/uart/uart_subr.c
+++ b/sys/dev/uart/uart_subr.c
@@ -214,9 +214,9 @@ uart_getenv(int devtype, struct uart_devinfo *di, struct uart_class *class)
* port (resp).
*/
if (devtype == UART_DEV_CONSOLE)
- spec = getenv("hw.uart.console");
+ spec = kern_getenv("hw.uart.console");
else if (devtype == UART_DEV_DBGPORT)
- spec = getenv("hw.uart.dbgport");
+ spec = kern_getenv("hw.uart.dbgport");
else
spec = NULL;
if (spec == NULL)