mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
Remove unused parameter fieldname in json_add_log(..., const char *fieldname, ...)
This commit is contained in:
committed by
Christian Decker
parent
2ab274595e
commit
d873bf60bf
@@ -656,7 +656,7 @@ static void log_to_json(unsigned int skipped,
|
|||||||
json_object_end(info->response);
|
json_object_end(info->response);
|
||||||
}
|
}
|
||||||
|
|
||||||
void json_add_log(struct json_result *response, const char *fieldname,
|
void json_add_log(struct json_result *response,
|
||||||
const struct log_book *lr, enum log_level minlevel)
|
const struct log_book *lr, enum log_level minlevel)
|
||||||
{
|
{
|
||||||
struct log_info info;
|
struct log_info info;
|
||||||
@@ -712,7 +712,7 @@ static void json_getlog(struct command *cmd,
|
|||||||
json_add_time(response, "created_at", log_init_time(lr)->ts);
|
json_add_time(response, "created_at", log_init_time(lr)->ts);
|
||||||
json_add_num(response, "bytes_used", (unsigned int)log_used(lr));
|
json_add_num(response, "bytes_used", (unsigned int)log_used(lr));
|
||||||
json_add_num(response, "bytes_max", (unsigned int)log_max_mem(lr));
|
json_add_num(response, "bytes_max", (unsigned int)log_max_mem(lr));
|
||||||
json_add_log(response, "log", lr, minlevel);
|
json_add_log(response, lr, minlevel);
|
||||||
json_object_end(response);
|
json_object_end(response);
|
||||||
command_success(cmd, response);
|
command_success(cmd, response);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ const tal_t *ltmp;
|
|||||||
void NORETURN PRINTF_FMT(1,2) fatal(const char *fmt, ...);
|
void NORETURN PRINTF_FMT(1,2) fatal(const char *fmt, ...);
|
||||||
|
|
||||||
/* Adds an array showing log entries */
|
/* Adds an array showing log entries */
|
||||||
void json_add_log(struct json_result *result, const char *fieldname,
|
void json_add_log(struct json_result *result,
|
||||||
const struct log_book *lr, enum log_level minlevel);
|
const struct log_book *lr, enum log_level minlevel);
|
||||||
|
|
||||||
bool json_tok_loglevel(const char *buffer, const jsmntok_t *tok,
|
bool json_tok_loglevel(const char *buffer, const jsmntok_t *tok,
|
||||||
|
|||||||
@@ -665,7 +665,7 @@ static void gossipd_getpeers_complete(struct subd *gossip, const u8 *msg,
|
|||||||
json_array_end(response);
|
json_array_end(response);
|
||||||
|
|
||||||
if (gpa->ll)
|
if (gpa->ll)
|
||||||
json_add_log(response, "log", p->log_book, *gpa->ll);
|
json_add_log(response, p->log_book, *gpa->ll);
|
||||||
json_object_end(response);
|
json_object_end(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ void json_add_hex(struct json_result *result UNNEEDED, const char *fieldname UNN
|
|||||||
const void *data UNNEEDED, size_t len UNNEEDED)
|
const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
{ fprintf(stderr, "json_add_hex called!\n"); abort(); }
|
{ fprintf(stderr, "json_add_hex called!\n"); abort(); }
|
||||||
/* Generated stub for json_add_log */
|
/* Generated stub for json_add_log */
|
||||||
void json_add_log(struct json_result *result UNNEEDED, const char *fieldname UNNEEDED,
|
void json_add_log(struct json_result *result UNNEEDED,
|
||||||
const struct log_book *lr UNNEEDED, enum log_level minlevel UNNEEDED)
|
const struct log_book *lr UNNEEDED, enum log_level minlevel UNNEEDED)
|
||||||
{ fprintf(stderr, "json_add_log called!\n"); abort(); }
|
{ fprintf(stderr, "json_add_log called!\n"); abort(); }
|
||||||
/* Generated stub for json_add_num */
|
/* Generated stub for json_add_num */
|
||||||
|
|||||||
Reference in New Issue
Block a user