Skip to content

Commit 679304a

Browse files
committed
log UPDATE make internal log function non static
1 parent 3f1bdf7 commit 679304a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ nc_libssh_thread_verbosity(int level)
9696

9797
#endif /* NC_ENABLED_SSH_TLS */
9898

99-
static void
99+
void
100100
nc_log_vprintf(const struct nc_session *session, NC_VERB_LEVEL level, const char *format, va_list args)
101101
{
102102
va_list args2;

src/log_p.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@
3535
*/
3636
void nc_log_printf(const struct nc_session *session, NC_VERB_LEVEL level, const char *format, ...);
3737

38+
/**
39+
* @brief Internal printing function with va_list
40+
*
41+
* @param[in] session Optional NETCONF session that generated the message
42+
* @param[in] level Verbose level
43+
* @param[in] format Formatting string
44+
* @param[in] args va_list with arguments
45+
*/
46+
void nc_log_vprintf(const struct nc_session *session, NC_VERB_LEVEL level, const char *format, va_list args);
47+
3848
/**
3949
* @brief Verbose level variable
4050
*/

0 commit comments

Comments
 (0)