[rtems commit] bsps: Use CONSOLE_DEVICE_NAME
Sebastian Huber
sebh at rtems.org
Fri Jun 21 08:23:25 UTC 2013
Module: rtems
Branch: master
Commit: c9db7f964bc48c4f0d609f35ce144acfe9fba19c
Changeset: http://git.rtems.org/rtems/commit/?id=c9db7f964bc48c4f0d609f35ce144acfe9fba19c
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 18 17:47:41 2013 +0200
bsps: Use CONSOLE_DEVICE_NAME
---
c/src/lib/libbsp/shared/console.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/c/src/lib/libbsp/shared/console.c b/c/src/lib/libbsp/shared/console.c
index 9780bf4..0017495 100644
--- a/c/src/lib/libbsp/shared/console.c
+++ b/c/src/lib/libbsp/shared/console.c
@@ -18,6 +18,7 @@
#include <bsp.h>
#include <bsp/generic-fatal.h>
#include <rtems/libio.h>
+#include <rtems/console.h>
#include <stdlib.h>
#include <assert.h>
#include <termios.h>
@@ -294,7 +295,7 @@ rtems_device_driver console_initialize(
}
if (minor == Console_Port_Minor) {
- status = rtems_io_register_name( "dev/console", major, minor );
+ status = rtems_io_register_name( CONSOLE_DEVICE_NAME, major, minor );
if (status != RTEMS_SUCCESSFUL) {
bsp_generic_fatal( BSP_GENERIC_FATAL_CONSOLE_REGISTER_DEV_1 );
}
More information about the vc
mailing list