| .. | .. |
|---|
| 37 | 37 | #include <linux/spinlock.h> |
|---|
| 38 | 38 | #include <linux/uaccess.h> |
|---|
| 39 | 39 | |
|---|
| 40 | | -#ifdef CONFIG_PSTORE_MCU_LOG |
|---|
| 40 | +#ifdef CONFIG_PSTORE_BOOT_LOG |
|---|
| 41 | 41 | #include <linux/pstore_ram.h> |
|---|
| 42 | 42 | #include <linux/io.h> |
|---|
| 43 | 43 | #endif |
|---|
| .. | .. |
|---|
| 144 | 144 | { |
|---|
| 145 | 145 | struct seq_file *sf = file->private_data; |
|---|
| 146 | 146 | struct pstore_private *ps = sf->private; |
|---|
| 147 | | -#ifdef CONFIG_PSTORE_MCU_LOG |
|---|
| 147 | +#ifdef CONFIG_PSTORE_BOOT_LOG |
|---|
| 148 | 148 | struct pstore_record *record = ps->record; |
|---|
| 149 | 149 | struct ramoops_context *cxt = record->psi->data; |
|---|
| 150 | 150 | struct persistent_ram_zone *prz; |
|---|
| .. | .. |
|---|
| 152 | 152 | char *log_tmp; |
|---|
| 153 | 153 | size_t size, start, n; |
|---|
| 154 | 154 | |
|---|
| 155 | | - if (ps->record->type == PSTORE_TYPE_MCU_LOG) { |
|---|
| 155 | + if (ps->record->type == PSTORE_TYPE_BOOT_LOG) { |
|---|
| 156 | 156 | |
|---|
| 157 | 157 | if (!cxt) |
|---|
| 158 | 158 | return count; |
|---|
| 159 | 159 | |
|---|
| 160 | | - prz = cxt->mcu_przs[record->id]; |
|---|
| 160 | + prz = cxt->boot_przs[record->id]; |
|---|
| 161 | 161 | |
|---|
| 162 | 162 | if (!prz) |
|---|
| 163 | 163 | return count; |
|---|
| .. | .. |
|---|
| 412 | 412 | scnprintf(name, sizeof(name), "powerpc-opal-%s-%llu", |
|---|
| 413 | 413 | record->psi->name, record->id); |
|---|
| 414 | 414 | break; |
|---|
| 415 | | -#ifdef CONFIG_PSTORE_MCU_LOG |
|---|
| 416 | | - case PSTORE_TYPE_MCU_LOG: |
|---|
| 417 | | - scnprintf(name, sizeof(name), "mcu-log-%llu", record->id); |
|---|
| 415 | +#ifdef CONFIG_PSTORE_BOOT_LOG |
|---|
| 416 | + case PSTORE_TYPE_BOOT_LOG: |
|---|
| 417 | + scnprintf(name, sizeof(name), "boot-log-%llu", record->id); |
|---|
| 418 | 418 | break; |
|---|
| 419 | 419 | #endif |
|---|
| 420 | 420 | case PSTORE_TYPE_UNKNOWN: |
|---|