Lines Matching full:0

70     sizeof log_mgmt_handlers / sizeof log_mgmt_handlers[0]
90 bytes_encoded = 0; in log_mgmt_encode_entry()
91 /* If offset is 0, we encode the keys for maps and other fields which are in log_mgmt_encode_entry()
95 if (entry->offset == 0) { in log_mgmt_encode_entry()
138 for (off = 0; off < entry->len; off += entry->chunklen) { in log_mgmt_encode_entry()
177 if (err != 0) { in log_mgmt_encode_entry()
197 if (entry->offset == 0) { in log_mgmt_cb_encode()
205 cbor_encoder_cust_writer_init(&cnt_encoder, &cnt_writer.enc, 0); in log_mgmt_cb_encode()
207 cbor_encoder_init(&cnt_encoder, &cnt_writer.enc, 0); in log_mgmt_cb_encode()
210 if (rc != 0) { in log_mgmt_cb_encode()
225 if (ctxt->counter == 0) { in log_mgmt_cb_encode()
239 if (rc != 0) { in log_mgmt_cb_encode()
246 return 0; in log_mgmt_cb_encode()
262 err = 0; in log_encode_entries()
263 rsp_len = 0; in log_encode_entries()
267 cbor_encoder_init(&cnt_encoder, &cnt_writer.enc, 0); in log_encode_entries()
293 if (rc < 0) { in log_encode_entries()
303 if (err != 0) { in log_encode_entries()
324 err = 0; in log_encode()
332 if (rc != 0) { in log_encode()
339 if (err != 0) { in log_encode()
343 return 0; in log_encode()
385 name[0] = '\0'; in log_mgmt_show()
387 if (rc != 0) { in log_mgmt_show()
392 err = 0; in log_mgmt_show()
396 if (rc != 0) { in log_mgmt_show()
400 /* This field is deprecated. Set it to 0 until it gets removed. */ in log_mgmt_show()
401 next_idx = 0; in log_mgmt_show()
412 for (log_idx = 0; ; log_idx++) { in log_mgmt_show()
416 if (name_len != 0) { in log_mgmt_show()
423 } else if (rc != 0) { in log_mgmt_show()
429 if (name_len == 0 || strcmp(name, log.name) == 0) { in log_mgmt_show()
438 if (name_len > 0) { in log_mgmt_show()
450 if (err != 0) { in log_mgmt_show()
454 return 0; in log_mgmt_show()
469 err = 0; in log_mgmt_module_list()
476 for (module = 0; ; module++) { in log_mgmt_module_list()
481 if (rc != 0) { in log_mgmt_module_list()
494 if (err != 0) { in log_mgmt_module_list()
498 return 0; in log_mgmt_module_list()
513 err = 0; in log_mgmt_logs_list()
520 for (log_idx = 0; ; log_idx++) { in log_mgmt_logs_list()
525 if (rc != 0) { in log_mgmt_logs_list()
537 if (err != 0) { in log_mgmt_logs_list()
541 return 0; in log_mgmt_logs_list()
556 err = 0; in log_mgmt_level_list()
563 for (level = 0; ; level++) { in log_mgmt_level_list()
568 if (rc != 0) { in log_mgmt_level_list()
581 if (err != 0) { in log_mgmt_level_list()
585 return 0; in log_mgmt_level_list()
595 char name[LOG_MGMT_NAME_LEN] = {0}; in log_mgmt_clear()
612 name[0] = '\0'; in log_mgmt_clear()
614 if (rc != 0) { in log_mgmt_clear()
619 for (log_idx = 0; ; log_idx++) { in log_mgmt_clear()
622 return 0; in log_mgmt_clear()
624 if (rc != 0) { in log_mgmt_clear()
629 if (name_len == 0 || strcmp(log.name, name) == 0) { in log_mgmt_clear()
631 if (rc != 0) { in log_mgmt_clear()
635 if (name_len != 0) { in log_mgmt_clear()
636 return 0; in log_mgmt_clear()
642 if (name_len != 0) { in log_mgmt_clear()
646 return 0; in log_mgmt_clear()