Changeset 1313ee9 in mainline for uspace/srv/console/console.c
- Timestamp:
- 2009-12-13T15:17:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 963dd91
- Parents:
- fc6dd18
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/console/console.c
rfc6dd18 r1313ee9 57 57 #include "screenbuffer.h" 58 58 59 #define NAME "console" 60 61 #define MAX_DEVICE_NAME 32 59 #define NAME "console" 60 #define NAMESPACE "term" 62 61 63 62 /** Phone to the keyboard driver. */ … … 69 68 ipcarg_t cols; /**< Framebuffer columns */ 70 69 ipcarg_t rows; /**< Framebuffer rows */ 71 int color_cap; 70 int color_cap; /**< Color capabilities (FB_CCAP_xxx) */ 72 71 } fb_info; 73 72 … … 740 739 consoles[i].refcount = 0; 741 740 742 char vc[ MAX_DEVICE_NAME];743 snprintf(vc, MAX_DEVICE_NAME, "vc%u", i);741 char vc[DEVMAP_NAME_MAXLEN + 1]; 742 snprintf(vc, DEVMAP_NAME_MAXLEN, "%s/vc%u", NAMESPACE, i); 744 743 745 744 if (devmap_device_register(vc, &consoles[i].dev_handle) != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.