char *ioc_ito10(unsigned int n)
{
- return (ioc_conv(10, 0, "0123456789", n));
+ return (ioc_conv(10, 0, DIGITS, n));
}
char *ioc_ito26(unsigned int n)
if (!i) {
/* This is CPU "all" */
- strcpy(cpuno, "all");
+ strcpy(cpuno, K_LOWERALL);
if (a->nr_ini == 1) {
/*
if (!i) {
/* This is CPU "all" */
- strcpy(cpuno, "all");
+ strcpy(cpuno, K_LOWERALL);
}
else {
sprintf(cpuno, "%d", i - 1);
if (!i) {
/* This is CPU "all" */
- strcpy(cpuno, "all");
+ strcpy(cpuno, K_LOWERALL);
}
else {
sprintf(cpuno, "%d", i - 1);
if (!i) {
/* This is CPU "all" */
- strcpy(cpuno, "all");
+ strcpy(cpuno, K_LOWERALL);
}
else {
sprintf(cpuno, "%d", i - 1);
if (i == 0) {
/* This is CPU "all" */
- strcpy(cpu_name, "all");
+ strcpy(cpu_name, K_LOWERALL);
if (DISPLAY_TOPOLOGY(flags)) {
snprintf(topology, sizeof(topology),
if (node == 0) {
/* This is node "all", i.e. CPU "all" */
- strcpy(node_name, "all");
+ strcpy(node_name, K_LOWERALL);
}
else {
snprintf(node_name, sizeof(node_name), "%d", node - 1);
/* Don't display current item if offline */
continue;
if (j == 0) {
- printf(" %*s", vwidth, "all");
+ printf(" %*s", vwidth, K_LOWERALL);
}
else {
snprintf(dfld, sizeof(dfld), "%s%d%s", cfld, j - 1, cfld + k + 1);
pos = i * CPU_ARRAY_SZ;
if (!i) {
/* This is CPU "all" */
- strcpy(item_name, "all");
+ strcpy(item_name, K_LOWERALL);
}
else {
sprintf(item_name, "%d", i - 1);
if (!i) {
/* This is CPU "all" */
- strcpy(item_name, "all");
+ strcpy(item_name, K_LOWERALL);
}
else {
/*
if (!i) {
/* This is CPU "all" */
- strcpy(item_name, "all");
+ strcpy(item_name, K_LOWERALL);
}
else {
sprintf(item_name, "%d", i - 1);
if (i == 0) {
/* This is CPU "all" */
- strcpy(cpuno, "all");
+ strcpy(cpuno, K_LOWERALL);
if (a->nr_ini == 1) {
/*
/* Yes: Display it */
if (!i) {
/* This is CPU "all" */
- strcpy(cpuno, "all");
+ strcpy(cpuno, K_LOWERALL);
}
else {
sprintf(cpuno, "%d", i - 1);
if (!i) {
/* This is CPU "all" */
- strcpy(cpuno, "all");
+ strcpy(cpuno, K_LOWERALL);
}
else {
sprintf(cpuno, "%d", i - 1);
/* Yes: Display it */
if (!i) {
/* This is CPU "all" */
- strcpy(cpuno, "all");
+ strcpy(cpuno, K_LOWERALL);
}
else {
sprintf(cpuno, "%d", i - 1);