Commit ebbc0385 authored by Donald Haase's avatar Donald Haase
Browse files

Whitespace cleanup, both in code and in output.

Additionally, added some extra flags for debug.
parent 7f7113db
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -76,10 +76,19 @@ void awesome_data_print(unsigned char *data, unsigned int size)
        for(j=0;j<BPL;j++)  printf("%c"   , isprint(data[i+j])?data[i+j]:' ');
        printf("|\n");
    }

    printf("\n");
}

int main (void)
{
    /* Uncomment to have everything piped to the screen. */
    //dbgio_dev_select("fb");

    /* Turn this on in order to have a bit more info to
        provide */
    vmu_set_buttons_enabled(1);

    /* Stuff from my old 'HOLLY' program */
    printf("SB_SBREV    : 0x%.2x\n", in8(SB_SBREV));
    /*
+2 −0
Original line number Diff line number Diff line
@@ -21,3 +21,5 @@ void __wdt_timeout_callback(void*);
    wdt_enable_timer(0,(WAIT),15,__wdt_timeout_callback,0); \
    while((COND) && __wdt_timeout_running)

/* From BIOSTest.c, prints some info and returns the BIOS crc32 */
unsigned int BIOS_Test (void);
 No newline at end of file
+0 −2
Original line number Diff line number Diff line
@@ -71,7 +71,6 @@ void print_devinfo(maple_devinfo_t *info)
    printf("Standby current consumption: %.4x\n", info->standby_power);
    printf("Maximum current consumption: %.4x\n", info->max_power);
    printf("\n");
    fflush(stdout);
}

/*
@@ -119,7 +118,6 @@ void print_device_allinfo(maple_device_t *dev, int extra)
    awesome_data_print(recv_buff + (4+112), size);

    printf("End of Extra data\n\n");
    fflush(stdout);
}

/*
+3 −3
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ unsigned int gd_spi_pio(spi_p* cmd,unsigned short* out,unsigned int* out_size)
    /* Check if data was prepared and is ready */
    if((in8(GD_ALTSTAT_Read)&ST_DRQ)==0)
    {
        printf("gd_spi_pio: controller has no data ready");
        printf("gd_spi_pio: controller has no data ready\n");
        return gd_error();
    }

@@ -192,13 +192,13 @@ void gdinfo_print(void)
    printf("gd_ATA_EXEC_DEV_DIAG returned: 0x%.2x\n", gd_ATA_EXEC_DEV_DIAG());

    /* Issue the ATA Command 'Identify Packet Device' */
    printf("Running gd_ATA_IDENTIFY_PACKET_DEV: ");
    printf("Running gd_ATA_IDENTIFY_PACKET_DEV: \n\t");
    gd_ATA_IDENTIFY_PACKET_DEV((unsigned short*)GD_INFO, &size);
    printf("Got %d bytes of data back\n", size);
    awesome_data_print(GD_INFO, size);

    /* Issue the SIP Command 'REQ MODE' */
    printf("Running gd_REQ_MODE: ");
    printf("Running gd_REQ_MODE: \n\t");
    gd_REQ_MODE((unsigned short*)REQMODE, &size);
    printf("Got %d bytes of data back\n", size);
    awesome_data_print(REQMODE, size);
+2 −2
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ rm-elf:
	-rm -f $(TARGET)

$(TARGET): $(OBJS) 
	kos-cc -o $(TARGET) $(OBJS)
	kos-cc -fanalyzer -Wall -Wextra -o $(TARGET) $(OBJS)

run: $(TARGET)
	$(KOS_LOADER) $(TARGET)
+2 −2

File changed.

Contains only whitespace changes.

Loading