Changeset 8a81a73a in mainline


Ignore:
Timestamp:
2009-07-06T21:44:05Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80a3bd9
Parents:
1757ffce
Message:

Prettier output from ata_bd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/ata_bd/ata_bd.c

    r1757ffce r8a81a73a  
    9797
    9898        /* Put drives to reset, disable interrupts. */
    99         printf("Reset drives...\n");
     99        printf("Reset drives... ");
     100        fflush(stdout);
     101
    100102        pio_write_8(&ctl->device_control, DCR_SRST);
    101103        /* FIXME: Find out how to do this properly. */
     
    107109        } while ((status & SR_BSY) != 0);
    108110        printf("Done\n");
    109 
    110         printf("Status = 0x%x\n", pio_read_8(&cmd->status));
    111111
    112112        (void) drive_identify(0, &disk[0]);
     
    150150        size_t i;
    151151
    152         printf("Identify drive %d\n", disk_id);
     152        printf("Identify drive %d... ", disk_id);
     153        fflush(stdout);
     154
    153155        pio_write_8(&cmd->drive_head, ((disk_id != 0) ? DHR_DRV : 0));
    154156        async_usleep(100);
     
    156158
    157159        status = pio_read_8(&cmd->status);
    158         printf("Status = 0x%x\n", status);
    159160
    160161        d->present = false;
Note: See TracChangeset for help on using the changeset viewer.