Changeset 54a0070 in mainline for uspace/srv/fs/udf/udf_ops.c


Ignore:
Timestamp:
2012-09-10T09:54:09Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
40b5421
Parents:
1dbd189 (diff), 42bde6a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~vojtech-horky/helenos/logging

All logging is controlled by the logger service.

The API allows to create hierarchical logs and each log_msg()
must specify which log to use.

It is possible to change reported log level at runtime via
logset utility or at boot time through GRUB parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/udf/udf_ops.c

    r1dbd189 r54a0070  
    311311        rc = udf_volume_recongnition(service_id);
    312312        if (rc != EOK) {
    313                 log_msg(LVL_NOTE, "VRS failed");
     313                log_msg(LOG_DEFAULT, LVL_NOTE, "VRS failed");
    314314                fs_instance_destroy(service_id);
    315315                free(instance);
     
    322322        rc = udf_get_anchor_volume_descriptor(service_id, &avd);
    323323        if (rc != EOK) {
    324                 log_msg(LVL_NOTE, "Anchor read failed");
     324                log_msg(LOG_DEFAULT, LVL_NOTE, "Anchor read failed");
    325325                fs_instance_destroy(service_id);
    326326                free(instance);
     
    329329        }
    330330       
    331         log_msg(LVL_DEBUG,
     331        log_msg(LOG_DEFAULT, LVL_DEBUG,
    332332            "Volume: Anchor volume descriptor found. Sector size=%" PRIu32,
    333333            instance->sector_size);
    334         log_msg(LVL_DEBUG,
     334        log_msg(LOG_DEFAULT, LVL_DEBUG,
    335335            "Anchor: main sequence [length=%" PRIu32 " (bytes), start=%"
    336336            PRIu32 " (sector)]", avd.main_extent.length,
    337337            avd.main_extent.location);
    338         log_msg(LVL_DEBUG,
     338        log_msg(LOG_DEFAULT, LVL_DEBUG,
    339339            "Anchor: reserve sequence [length=%" PRIu32 " (bytes), start=%"
    340340            PRIu32 " (sector)]", avd.reserve_extent.length,
     
    353353        rc = udf_read_volume_descriptor_sequence(service_id, avd.main_extent);
    354354        if (rc != EOK) {
    355                 log_msg(LVL_NOTE, "Volume Descriptor Sequence read failed");
     355                log_msg(LOG_DEFAULT, LVL_NOTE, "Volume Descriptor Sequence read failed");
    356356                fs_instance_destroy(service_id);
    357357                free(instance);
     
    364364        rc = udf_node_get(&rfn, service_id, instance->volumes[DEFAULT_VOL].root_dir);
    365365        if (rc != EOK) {
    366                 log_msg(LVL_NOTE, "Can't create root node");
     366                log_msg(LOG_DEFAULT, LVL_NOTE, "Can't create root node");
    367367                fs_instance_destroy(service_id);
    368368                free(instance);
Note: See TracChangeset for help on using the changeset viewer.