Changeset 54a0070 in mainline for uspace/srv/fs/udf/udf_file.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_file.c

    r1dbd189 r54a0070  
    7171            FLE32(exd->extent_location.lblock_num);
    7272       
    73         log_msg(LVL_DEBUG,
     73        log_msg(LOG_DEFAULT, LVL_DEBUG,
    7474            "Extended allocator: start=%d, block_num=%d, len=%d", start,
    7575            FLE32(exd->extent_location.lblock_num), FLE32(exd->info_length));
     
    100100        switch (icb_flag) {
    101101        case UDF_SHORT_AD:
    102                 log_msg(LVL_DEBUG,
     102                log_msg(LOG_DEFAULT, LVL_DEBUG,
    103103                    "ICB: sequence of allocation descriptors - icbflag = short_ad_t");
    104104               
     
    167167               
    168168        case UDF_LONG_AD:
    169                 log_msg(LVL_DEBUG,
     169                log_msg(LOG_DEFAULT, LVL_DEBUG,
    170170                    "ICB: sequence of allocation descriptors - icbflag = long_ad_t");
    171171               
     
    203203               
    204204        case UDF_EXTENDED_AD:
    205                 log_msg(LVL_DEBUG,
     205                log_msg(LOG_DEFAULT, LVL_DEBUG,
    206206                    "ICB: sequence of allocation descriptors - icbflag = extended_ad_t");
    207207                break;
    208208               
    209209        case UDF_DATA_AD:
    210                 log_msg(LVL_DEBUG,
     210                log_msg(LOG_DEFAULT, LVL_DEBUG,
    211211                    "ICB: sequence of allocation descriptors - icbflag = 3, node contains data itself");
    212212               
     
    253253                switch (FLE16(data->id)) {
    254254                case UDF_FILE_ENTRY:
    255                         log_msg(LVL_DEBUG, "ICB: File entry descriptor found");
     255                        log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: File entry descriptor found");
    256256                       
    257257                        udf_file_entry_descriptor_t *file =
     
    267267                       
    268268                case UDF_EFILE_ENTRY:
    269                         log_msg(LVL_DEBUG, "ICB: Extended file entry descriptor found");
     269                        log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: Extended file entry descriptor found");
    270270                       
    271271                        udf_extended_file_entry_descriptor_t *efile =
     
    281281                       
    282282                case UDF_ICB_TERMINAL:
    283                         log_msg(LVL_DEBUG, "ICB: Terminal entry descriptor found");
     283                        log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: Terminal entry descriptor found");
    284284                        block_put(block);
    285285                        return EOK;
Note: See TracChangeset for help on using the changeset viewer.