Changes in kernel/arch/sparc64/src/drivers/scr.c [9d58539:b2fa1204] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/scr.c
r9d58539 rb2fa1204 81 81 82 82 if (scr_type == SCR_UNKNOWN) { 83 printf("Unknown screen device.\n");83 log(LF_ARCH, LVL_ERROR, "Unknown screen device."); 84 84 return; 85 85 } … … 117 117 case SCR_ATYFB: 118 118 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."); 120 120 return; 121 121 } … … 124 124 125 125 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."); 127 128 return; 128 129 } … … 130 131 if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg, 131 132 &fb_addr)) { 132 printf("Failed to determine screen address.\n"); 133 log(LF_ARCH, LVL_ERROR, 134 "Failed to determine screen address."); 133 135 return; 134 136 } … … 152 154 break; 153 155 default: 154 printf("Unsupported bits per pixel.\n"); 156 log(LF_ARCH, LVL_ERROR, 157 "Unsupported bits per pixel."); 155 158 return; 156 159 } … … 159 162 case SCR_XVR: 160 163 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."); 162 166 return; 163 167 } … … 166 170 167 171 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."); 169 174 return; 170 175 } … … 172 177 if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg, 173 178 &fb_addr)) { 174 printf("Failed to determine screen address.\n"); 179 log(LF_ARCH, LVL_ERROR, 180 "Failed to determine screen address."); 175 181 return; 176 182 } … … 196 202 break; 197 203 default: 198 printf("Unsupported bits per pixel.\n"); 204 log(LF_ARCH, LVL_ERROR, 205 "Unsupported bits per pixel."); 199 206 return; 200 207 } … … 207 214 upa_reg = &((ofw_upa_reg_t *) prop->value)[FFB_REG_24BPP]; 208 215 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."); 210 218 return; 211 219 } … … 219 227 break; 220 228 default: 221 printf("Not implemented.\n");229 log(LF_ARCH, LVL_WARN, "Not implemented."); 222 230 return; 223 231 } … … 225 233 sbus_reg = &((ofw_sbus_reg_t *) prop->value)[0]; 226 234 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."); 228 237 return; 229 238 } … … 233 242 case SCR_QEMU_VGA: 234 243 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."); 236 245 return; 237 246 } … … 240 249 241 250 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."); 243 253 return; 244 254 } … … 246 256 if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg, 247 257 &fb_addr)) { 248 printf("Failed to determine screen address.\n"); 258 log(LF_ARCH, LVL_ERROR, 259 "Failed to determine screen address."); 249 260 return; 250 261 } … … 268 279 break; 269 280 default: 270 printf("Unsupported bits per pixel.\n");281 log(LF_ARCH, LVL_ERROR, "Unsupported bits per pixel."); 271 282 return; 272 283 }
Note:
See TracChangeset
for help on using the changeset viewer.