Changeset 55f8c6e7 in mainline for uspace/lib/label/src/mbr.c


Ignore:
Timestamp:
2015-10-29T17:10:30Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dc2d582
Parents:
03661d19
Message:

Remove excessive debug messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/label/src/mbr.c

    r03661d19 r55f8c6e7  
    486486}
    487487
    488 #include <io/log.h>
    489488static void mbr_part_get_info(label_part_t *part, label_part_info_t *pinfo)
    490489{
     
    493492        pinfo->nblocks = part->nblocks;
    494493
    495         log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_part_get_info: index=%d ptype=%d",
    496             (int)part->index, (int)part->ptype.t.num);
    497494        if (link_used(&part->llog))
    498495                pinfo->pkind = lpk_logical;
     
    512509        int rc;
    513510
    514         log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_part_create");
    515511        if (pspec->ptype.fmt != lptf_num)
    516512                return EINVAL;
     
    621617        }
    622618
    623         log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_part_create success");
    624619        *rpart = part;
    625620        return EOK;
     
    756751                return EINVAL;
    757752
    758         log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_part_to_pte: a0=%" PRIu64
    759             " len=%" PRIu64 " ptype=%d", part->block0, part->nblocks,
    760             (int)part->ptype.t.num);
    761753        memset(pte, 0, sizeof(mbr_pte_t));
    762754        pte->ptype = part->ptype.t.num;
     
    949941        ba = part->block0 - part->hdr_blocks;
    950942
    951         log_msg(LOG_DEFAULT, LVL_NOTE, "Write EBR to ba=%" PRIu64, ba);
    952943        rc = block_write_direct(label->svc_id, ba, 1, br);
    953944        if (rc != EOK) {
     
    998989        ba = part->block0 - part->hdr_blocks;
    999990
    1000         log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_ebr_update_next ba=%" PRIu64,
    1001             ba);
    1002 
    1003991        br = calloc(1, label->block_size);
    1004992        if (br == NULL)
    1005993                return ENOMEM;
    1006994
    1007         log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_ebr_update_next read ba=%" PRIu64,
    1008             ba);
    1009 
    1010995        rc = block_read_direct(label->svc_id, ba, 1, br);
    1011996        if (rc != EOK) {
     
    10171002        sgn = uint16_t_le2host(br->signature);
    10181003        if (sgn != mbr_br_signature) {
    1019                 log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_ebr_update_next signature error");
    10201004                rc = EIO;
    10211005                goto error;
     
    10241008        mbr_log_part_to_ptes(part, NULL, &br->pte[mbr_ebr_pte_next]);
    10251009
    1026         log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_ebr_update_next write ba=%" PRIu64,
    1027             ba);
    1028 
    10291010        rc = block_write_direct(label->svc_id, ba, 1, br);
    10301011        if (rc != EOK) {
     
    10321013                goto error;
    10331014        }
    1034 
    1035         log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_ebr_update_next success");
    10361015
    10371016        free(br);
Note: See TracChangeset for help on using the changeset viewer.