obmc-console: Introduce console-id, deprecate socket-id
The name `socket-id` exposes too much detail about the implementation.
Really the tag identifies the console, so name it as such.
Maintain backwards compatibility until we've converted all the in-tree
OpenBMC users over to `console-id`. Once that's done we can drop support
for `socket-id`.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I5aa2ba84835d64901e459b42bfe7be59043466c7
diff --git a/socket-handler.c b/socket-handler.c
index 1932b86..16aed33 100644
--- a/socket-handler.c
+++ b/socket-handler.c
@@ -357,7 +357,7 @@
memset(&addr, 0, sizeof(addr));
addr.sun_family = AF_UNIX;
len = console_socket_path(addr.sun_path,
- config_get_value(config, "socket-id"));
+ config_get_value(config, "console-id"));
if (len < 0) {
if (errno) {
warn("Failed to configure socket: %s", strerror(errno));