Skip to content

Commit e9f5626

Browse files
committed
log: drop the tree.h header include
The dependency on including the root object has been removed, thus drop the include. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 198564c commit e9f5626

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

libnvme/src/nvme/log.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
/*
33
* Copyright (c) 2021 Martin Wilck, SUSE LLC
44
*/
5-
#ifndef _LOG_H
6-
#define _LOG_H
5+
#pragma once
76

87
#include <stdbool.h>
98
#include <syslog.h>
9+
#include <stdio.h>
1010

11-
/* for nvme_root_t */
12-
#include <nvme/tree.h>
11+
struct nvme_global_ctx;
12+
struct nvme_transport_handle;
1313

1414
#ifndef MAX_LOGLEVEL
1515
# define MAX_LOGLEVEL LOG_DEBUG
@@ -63,5 +63,3 @@ void nvme_init_default_logging(FILE *fp, int lvl, bool log_pid,
6363
*/
6464
int nvme_get_logging_level(struct nvme_global_ctx *ctx, bool *log_pid,
6565
bool *log_tstamp);
66-
67-
#endif /* _LOG_H */

0 commit comments

Comments
 (0)