Changeset eaf4e2fc in mainline


Ignore:
Timestamp:
2019-12-18T20:34:41Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
04b7f2f
Parents:
9e45a41
git-author:
Jiri Svoboda <jiri@…> (2019-12-18 18:56:37)
git-committer:
Jiri Svoboda <jiri@…> (2019-12-18 20:34:41)
Message:

Make ATA driver less verbose

Location:
uspace/drv/block/ata_bd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ata_bd/ata_bd.c

    r9e45a41 reaf4e2fc  
    163163
    164164        for (i = 0; i < MAX_DISKS; i++) {
    165                 ddf_msg(LVL_NOTE, "Identify drive %d...", i);
     165                ddf_msg(LVL_DEBUG, "Identify drive %d...", i);
    166166
    167167                rc = disk_init(ctrl, &ctrl->disk[i], i);
     
    170170                        disk_print_summary(&ctrl->disk[i]);
    171171                } else {
    172                         ddf_msg(LVL_NOTE, "Not found.");
     172                        ddf_msg(LVL_DEBUG, "Not found.");
    173173                }
    174174        }
     
    192192        if (n_disks == 0) {
    193193                ddf_msg(LVL_WARN, "No disks detected.");
    194                 rc = EIO;
     194                rc = ENOENT;
    195195                goto error;
    196196        }
     
    368368        if (rc == EOK) {
    369369                /* Success. It's a register (non-packet) device. */
    370                 ddf_msg(LVL_NOTE, "ATA register-only device found.");
     370                ddf_msg(LVL_DEBUG, "ATA register-only device found.");
    371371                d->dev_type = ata_reg_dev;
    372372        } else if (rc == EIO) {
  • uspace/drv/block/ata_bd/main.c

    r9e45a41 reaf4e2fc  
    134134
    135135        rc = ata_ctrl_init(ctrl, &res);
     136        if (rc == ENOENT)
     137                goto error;
     138
    136139        if (rc != EOK) {
    137140                ddf_msg(LVL_ERROR, "Failed initializing ATA controller.");
Note: See TracChangeset for help on using the changeset viewer.