{
unsigned long i;
- for (i = 0; i < dss_desc.log_enable_cnt; i++) {
+ for (i = 0; i < dss_desc.log_cnt; i++) {
if (!strncmp(dss_items[i].name, name, strlen(name)))
return dss_items[i].entry.size;
}
{
unsigned long i;
- for (i = 0; i < dss_desc.log_enable_cnt; i++) {
+ for (i = 0; i < dss_desc.log_cnt; i++) {
if (!strncmp(dss_items[i].name, name, strlen(name)))
return dss_items[i].entry.vaddr;
}
{
unsigned long i;
- for (i = 0; i < dss_desc.log_enable_cnt; i++) {
+ for (i = 0; i < dss_desc.log_cnt; i++) {
if (!strncmp(dss_items[i].name, name, strlen(name)))
return dss_items[i].entry.paddr;
}
unsigned int log_sfr_num;
unsigned int log_pstore_num;
unsigned int log_etm_num;
- unsigned int log_enable_cnt;
+ unsigned int log_cnt;
unsigned int callstack;
unsigned long hardlockup_core_mask;
ssize_t n = 0;
/* item */
- for (i = 0; i < dss_desc.log_enable_cnt; i++) {
+ for (i = 0; i < dss_desc.log_cnt; i++) {
item = &dss_items[i];
n += scnprintf(buf + n, 24, "%-12s : %sable\n",
item->name, item->entry.enabled ? "en" : "dis");
dss_items[i].curr_ptr = (unsigned char *)dss_items[i].entry.vaddr;
}
}
- dss_desc.log_enable_cnt = enabled_count;
+ dss_desc.log_cnt = ARRAY_SIZE(dss_items);
return enabled_count;
}