Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/scr.c

    r9d58539 rb2fa1204  
    8181       
    8282        if (scr_type == SCR_UNKNOWN) {
    83                 printf("Unknown screen device.\n");
     83                log(LF_ARCH, LVL_ERROR, "Unknown screen device.");
    8484                return;
    8585        }
     
    117117        case SCR_ATYFB:
    118118                if (prop->size / sizeof(ofw_pci_reg_t) < 2) {
    119                         printf("Too few screen registers.\n");
     119                        log(LF_ARCH, LVL_ERROR, "Too few screen registers.");
    120120                        return;
    121121                }
     
    124124               
    125125                if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) {
    126                         printf("Failed to absolutize fb register.\n");
     126                        log(LF_ARCH, LVL_ERROR,
     127                            "Failed to absolutize fb register.");
    127128                        return;
    128129                }
     
    130131                if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg,
    131132                    &fb_addr)) {
    132                         printf("Failed to determine screen address.\n");
     133                        log(LF_ARCH, LVL_ERROR,
     134                            "Failed to determine screen address.");
    133135                        return;
    134136                }
     
    152154                        break;
    153155                default:
    154                         printf("Unsupported bits per pixel.\n");
     156                        log(LF_ARCH, LVL_ERROR,
     157                            "Unsupported bits per pixel.");
    155158                        return;
    156159                }
     
    159162        case SCR_XVR:
    160163                if (prop->size / sizeof(ofw_pci_reg_t) < 2) {
    161                         printf("Too few screen registers.\n");
     164                        log(LF_ARCH, LVL_ERROR,
     165                            "Too few screen registers.");
    162166                        return;
    163167                }
     
    166170               
    167171                if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) {
    168                         printf("Failed to absolutize fb register.\n");
     172                        log(LF_ARCH, LVL_ERROR,
     173                            "Failed to absolutize fb register.");
    169174                        return;
    170175                }
     
    172177                if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg,
    173178                    &fb_addr)) {
    174                         printf("Failed to determine screen address.\n");
     179                        log(LF_ARCH, LVL_ERROR,
     180                            "Failed to determine screen address.");
    175181                        return;
    176182                }
     
    196202                        break;
    197203                default:
    198                         printf("Unsupported bits per pixel.\n");
     204                        log(LF_ARCH, LVL_ERROR,
     205                            "Unsupported bits per pixel.");
    199206                        return;
    200207                }
     
    207214                upa_reg = &((ofw_upa_reg_t *) prop->value)[FFB_REG_24BPP];
    208215                if (!ofw_upa_apply_ranges(node->parent, upa_reg, &fb_addr)) {
    209                         printf("Failed to determine screen address.\n");
     216                        log(LF_ARCH, LVL_ERROR,
     217                            "Failed to determine screen address.");
    210218                        return;
    211219                }
     
    219227                        break;
    220228                default:
    221                         printf("Not implemented.\n");
     229                        log(LF_ARCH, LVL_WARN, "Not implemented.");
    222230                        return;
    223231                }
     
    225233                sbus_reg = &((ofw_sbus_reg_t *) prop->value)[0];
    226234                if (!ofw_sbus_apply_ranges(node->parent, sbus_reg, &fb_addr)) {
    227                         printf("Failed to determine screen address.\n");
     235                        log(LF_ARCH, LVL_ERROR,
     236                            "Failed to determine screen address.");
    228237                        return;
    229238                }
     
    233242        case SCR_QEMU_VGA:
    234243                if (prop->size / sizeof(ofw_pci_reg_t) < 2) {
    235                         printf("Too few screen registers.\n");
     244                        log(LF_ARCH, LVL_ERROR, "Too few screen registers.");
    236245                        return;
    237246                }
     
    240249
    241250                if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) {
    242                         printf("Failed to absolutize fb register.\n");
     251                        log(LF_ARCH, LVL_ERROR,
     252                            "Failed to absolutize fb register.");
    243253                        return;
    244254                }
     
    246256                if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg,
    247257                    &fb_addr)) {
    248                         printf("Failed to determine screen address.\n");
     258                        log(LF_ARCH, LVL_ERROR,
     259                            "Failed to determine screen address.");
    249260                        return;
    250261                }
     
    268279                        break;
    269280                default:
    270                         printf("Unsupported bits per pixel.\n");
     281                        log(LF_ARCH, LVL_ERROR, "Unsupported bits per pixel.");
    271282                        return;
    272283                }
Note: See TracChangeset for help on using the changeset viewer.