]> git.saurik.com Git - apple/xnu.git/blobdiff - pexpert/ppc/pe_kprintf.c
xnu-1228.9.59.tar.gz
[apple/xnu.git] / pexpert / ppc / pe_kprintf.c
index 9dffd0de0e19160c0d682613d89d27093ad35ff0..2509d69620392c6b1312e7adf8bfb0c4eae5b327 100644 (file)
@@ -63,7 +63,7 @@ void PE_init_kprintf(__unused boolean_t vm_initialized)
        if (PE_state.initialized == FALSE)
                panic("Platform Expert not initialized");
 
-       if (PE_parse_boot_arg("debug", &boot_arg))
+       if (PE_parse_boot_argn("debug", &boot_arg, sizeof (boot_arg)))
                if(boot_arg & DB_KPRT) disable_serial_output = FALSE; 
 
        if (DTLookupEntry(NULL, "/options", &options) == kSuccess) {
@@ -92,7 +92,7 @@ void PE_init_kprintf(__unused boolean_t vm_initialized)
        }
 
        /* Check the boot-args for new serial baud. */
-       if (PE_parse_boot_arg("serialbaud", &serial_baud))
+       if (PE_parse_boot_argn("serialbaud", &serial_baud, sizeof (serial_baud)))
                if (serial_baud != -1) gPESerialBaud = serial_baud; 
 
        if( (scc = PE_find_scc())) {                            /* See if we can find the serial port */