Changeset 124f9bd in mainline for uspace/drv/audio/sb16/main.c


Ignore:
Timestamp:
2012-07-05T20:52:36Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e941bf8
Parents:
4bec78f
Message:

audio/sb16: Remove newlines from debug messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/main.c

    r4bec78f r124f9bd  
    103103        sb16_t *soft_state = ddf_dev_data_alloc(device, sizeof(sb16_t));
    104104        int ret = soft_state ? EOK : ENOMEM;
    105         CHECK_RET_RETURN(ret, "Failed to allocate sb16 structure.\n");
     105        CHECK_RET_RETURN(ret, "Failed to allocate sb16 structure.");
    106106
    107107        uintptr_t sb_regs = 0, mpu_regs = 0;
     
    111111        ret = sb_get_res(device, &sb_regs, &sb_regs_size, &mpu_regs,
    112112            &mpu_regs_size, &irq, &dma8, &dma16);
    113         CHECK_RET_RETURN(ret,
    114             "Failed to get resources: %s.\n", str_error(ret));
     113        CHECK_RET_RETURN(ret, "Failed to get resources: %s.", str_error(ret));
    115114
    116115        const size_t irq_cmd_count = sb16_irq_code_size();
     
    128127        ret = register_interrupt_handler(device, irq, irq_handler, &irq_code);
    129128        CHECK_RET_RETURN(ret,
    130             "Failed to register irq handler: %s.\n", str_error(ret));
     129            "Failed to register irq handler: %s.", str_error(ret));
    131130
    132131#define CHECK_RET_UNREG_DEST_RETURN(ret, msg...) \
     
    138137
    139138        ret = sb_enable_interrupts(device);
    140         CHECK_RET_UNREG_DEST_RETURN(ret, "Failed to enable interrupts: %s.\n",
     139        CHECK_RET_UNREG_DEST_RETURN(ret, "Failed to enable interrupts: %s.",
    141140            str_error(ret));
    142141
     
    144143            soft_state, (void*)sb_regs, sb_regs_size, device, dma8, dma16);
    145144        CHECK_RET_UNREG_DEST_RETURN(ret,
    146             "Failed to init sb16 driver: %s.\n", str_error(ret));
     145            "Failed to init sb16 driver: %s.", str_error(ret));
    147146
    148147        ret = sb16_init_mpu(soft_state, (void*)mpu_regs, mpu_regs_size);
     
    154153                        if (ret != EOK)
    155154                                ddf_log_error(
    156                                     "Failed to bind midi function: %s.\n",
     155                                    "Failed to bind midi function: %s.",
    157156                                    str_error(ret));
    158157                } else {
    159                         ddf_log_error("Failed to create midi function.\n");
     158                        ddf_log_error("Failed to create midi function.");
    160159                }
    161160        } else {
    162             ddf_log_warning("Failed to init mpu driver: %s.\n", str_error(ret));
     161            ddf_log_warning("Failed to init mpu driver: %s.", str_error(ret));
    163162        }
    164163
Note: See TracChangeset for help on using the changeset viewer.