src/dpdk/drivers/net/qede/qede_debug.c
static u32 qed_print_section_params(u32 *dump_buf,
				    u32 num_section_params,
				    char *results_buf, u32 *num_chars_printed)
{
	u32 i, dump_offset = 0, results_offset = 0;

	for (i = 0; i < num_section_params; i++) {
		const char *param_name, *param_str_val;
		u32 param_num_val = 0;

		dump_offset += qed_read_param(dump_buf + dump_offset,
					      &param_name,
					      &param_str_val, &param_num_val);

		if (param_str_val) {
			results_offset +=
				sprintf(qed_get_buf_ptr(results_buf,
							results_offset),
					"%s: %s\n", param_name, param_str_val);
		} else if (strcmp(param_name, "fw-timestamp")) {
			results_offset +=
				sprintf(qed_get_buf_ptr(results_buf,
							results_offset),
					"%s: %d\n", param_name, param_num_val);
		}
	}

	results_offset += sprintf(qed_get_buf_ptr(results_buf, results_offset),
				  "\n");

	*num_chars_printed = results_offset;

	return dump_offset;
}
/* Reads section params from the specified buffer and prints them to the results
 * buffer. Returns the number of dwords read.
 */
Reads section params from the specified buffer and prints them to the results
buffer. Returns the number of dwords read.
Reads section params from the specified buffer and prints them to the results buffer . Returns the number of dwords read .
static u32 qed_print_section_params(u32 *dump_buf,
				    u32 num_section_params,
				    char *results_buf, u32 *num_chars_printed)
{
	u32 i, dump_offset = 0, results_offset = 0;
	for (i = 0; i < num_section_params; i++) {
		const char *param_name, *param_str_val;
		u32 param_num_val = 0;
		dump_offset += qed_read_param(dump_buf + dump_offset,
					      &param_name,
					      &param_str_val, &param_num_val);
		if (param_str_val) {
			results_offset +=
				sprintf(qed_get_buf_ptr(results_buf,
							results_offset),
					"%s: %s\n", param_name, param_str_val);
		} else if (strcmp(param_name, "fw-timestamp")) {
			results_offset +=
				sprintf(qed_get_buf_ptr(results_buf,
							results_offset),
					"%s: %d\n", param_name, param_num_val);
		}
	}
	results_offset += sprintf(qed_get_buf_ptr(results_buf, results_offset),
				  "\n");
	*num_chars_printed = results_offset;
	return dump_offset;
}
static u32 qed_print_section_params ( u32 * dump_buf , u32 num_section_params , char * results_buf , u32 * num_chars_printed ) { u32 i , dump_offset = 0 , results_offset = 0 ; for ( i = 0 ; i < num_section_params ; i ++ ) { const char * param_name , * param_str_val ; u32 param_num_val = 0 ; dump_offset += qed_read_param ( dump_buf + dump_offset , & param_name , & param_str_val , & param_num_val ) ; if ( param_str_val ) { results_offset += sprintf ( qed_get_buf_ptr ( results_buf , results_offset ) , " \n " , param_name , param_str_val ) ; } else if ( strcmp ( param_name , " " ) ) { results_offset += sprintf ( qed_get_buf_ptr ( results_buf , results_offset ) , " \n " , param_name , param_num_val ) ; } } results_offset += sprintf ( qed_get_buf_ptr ( results_buf , results_offset ) , " \n " ) ; * num_chars_printed = results_offset ; return dump_offset ; }
Reads section params from the specified buffer and prints them to the results
 buffer.
Reads section params from the specified buffer and prints them to the results buffer .