Changeset 56602e0 in mainline for uspace/app/hrctl/hrctl.c


Ignore:
Timestamp:
2025-05-07T11:27:25Z (5 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
964e897
Parents:
155d34f
git-author:
Miroslav Cimerman <mc@…> (2025-05-07 11:26:23)
git-committer:
Miroslav Cimerman <mc@…> (2025-05-07 11:27:25)
Message:

hr: rename all strings status' -> state'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hrctl/hrctl.c

    r155d34f r56602e0  
    7474    "          -h, --hotspare device             add hotspare.\n"
    7575    "\n"
    76     "  -s, --status                              Display status of active volumes.\n"
     76    "  -s, --state                               Display state of active volumes.\n"
    7777    "\n"
    7878    "Example usage:\n"
     
    435435}
    436436
    437 static int handle_status(hr_t *hr, int argc, char **argv)
     437static int handle_state(hr_t *hr, int argc, char **argv)
    438438{
    439439        (void)argc;
    440440        (void)argv;
    441441
    442         errno_t rc = hr_print_status(hr);
     442        errno_t rc = hr_print_state(hr);
    443443        if (rc != EOK) {
    444                 printf(NAME ": status printing failed: %s\n", str_error(rc));
     444                printf(NAME ": state printing failed: %s\n", str_error(rc));
    445445                return EXIT_FAILURE;
    446446        }
     
    474474                { "disassemble",        no_argument, 0, 'd' },
    475475                { "modify",             no_argument, 0, 'm' },
    476                 { "status",             no_argument, 0, 's' },
     476                { "state",              no_argument, 0, 's' },
    477477                { 0, 0, 0, 0 }
    478478        };
     
    496496                goto end;
    497497        case 's':
    498                 rc = handle_status(hr, argc, argv);
     498                rc = handle_state(hr, argc, argv);
    499499                goto end;
    500500        default:
Note: See TracChangeset for help on using the changeset viewer.