diff options
author | Burt P <pburt0@gmail.com> | 2017-07-25 15:56:10 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-07-25 19:02:32 -0700 |
commit | 02173f2831d25642ec5c702327d4e1f8b050feec (patch) | |
tree | ccf623b7841be29c1e89ad4719cacb4adc7b9ac8 /includes/dt_util.h | |
parent | 81ae37c58709cf1396b09e5136acfc8a0c259476 (diff) |
device tree: silence some warnings
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/dt_util.h')
-rw-r--r-- | includes/dt_util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/dt_util.h b/includes/dt_util.h index acc4ad16..b4506d19 100644 --- a/includes/dt_util.h +++ b/includes/dt_util.h @@ -40,7 +40,7 @@ typedef uint32_t dt_uint; /* big-endian */ typedef struct _dtr dtr; typedef struct _dtr_obj dtr_obj; -dtr *dtr_new(char *base_path); /* NULL for DTR_ROOT */ +dtr *dtr_new(const char *base_path); /* NULL for DTR_ROOT */ void dtr_free(dtr *); int dtr_was_found(dtr *); const char *dtr_base_path(dtr *); @@ -77,6 +77,9 @@ char *dtr_maps_info(dtr *); /* returns hardinfo shell section */ const char *dtr_find_device_tree_root(void); +/* write to the message log */ +void dtr_msg(dtr *s, char *fmt, ...); + #define sp_sep(STR) (strlen(STR) ? " " : "") /* appends an element to a string, adding a space if * the string is not empty. |