Changeset bd51105 in mainline


Ignore:
Timestamp:
2024-11-15T16:44:25Z (6 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
5d96f427
Parents:
972b011
git-author:
Miroslav Cimerman <mc@…> (2024-11-15 15:58:25)
git-committer:
Miroslav Cimerman <mc@…> (2024-11-15 16:44:25)
Message:

hr: util.h: add DPRINTF and ERR_PRINTF macros

These macros forward arguments to log_msg() with
LVL_DEBUG and LVL_ERROR respectively.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/util.h

    r972b011 rbd51105  
    4141#include "var.h"
    4242
     43#define DPRINTF(format, ...) \
     44    log_msg(LOG_DEFAULT, LVL_DEBUG, format, ##__VA_ARGS__)
     45
     46#define ERR_PRINTF(format, ...) \
     47    log_msg(LOG_DEFAULT, LVL_ERROR, format, ##__VA_ARGS__)
     48
    4349extern errno_t hr_init_devs(hr_volume_t *);
    4450extern void hr_fini_devs(hr_volume_t *);
Note: See TracChangeset for help on using the changeset viewer.