terminal-util: rename set_terminal_cursor_position() → terminal_set_cursor_position()
Let's prefix these functions with the subsystem name, and clean them up a bit. Specifically, drop the error logging, it's entirely duplicative, since every single caller does it anyway.
This commit is contained in:
+3
-3
@@ -185,7 +185,7 @@ static int display_emergency_message_fullscreen(const char *message) {
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to clear terminal, ignoring: %m");
|
||||
|
||||
r = set_terminal_cursor_position(fd, 2, 4);
|
||||
r = terminal_set_cursor_position(fd, 2, 4);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to move terminal cursor position, ignoring: %m");
|
||||
|
||||
@@ -197,7 +197,7 @@ static int display_emergency_message_fullscreen(const char *message) {
|
||||
|
||||
qr_code_start_row = w.ws_row * 3U / 5U;
|
||||
qr_code_start_column = w.ws_col * 3U / 4U;
|
||||
r = set_terminal_cursor_position(fd, 4, 4);
|
||||
r = terminal_set_cursor_position(fd, 4, 4);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to move terminal cursor position, ignoring: %m");
|
||||
|
||||
@@ -217,7 +217,7 @@ static int display_emergency_message_fullscreen(const char *message) {
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "QR code could not be printed, ignoring: %m");
|
||||
|
||||
r = set_terminal_cursor_position(fd, w.ws_row - 1, w.ws_col * 2U / 5U);
|
||||
r = terminal_set_cursor_position(fd, w.ws_row - 1, w.ws_col * 2U / 5U);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to move terminal cursor position, ignoring: %m");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user