- sprintf(filename, "log-%u", log_num);
- if ((c = cbm_open(lfn, (BYTE)8, (BYTE)CBM_READ, filename)) != 0) {
- c128_perror(c, "cbm_open(log) for reading");
- exit(1);
- }
- log_heap_offset = cbm_read(lfn, log_heap_buf, LOG_SIZE);
- if (log_heap_offset < 0) {
- cprintf("error while cbm_read()ing the logfile\r\n");
- exit(1);
- }
- log_heap_flushed = log_heap_offset;
- log_heap_buf[log_heap_offset] = '\0';
- cbm_close(lfn);
- }
+ sprintf(filename, "log-%u", log_num);
+ if ((c = cbm_open(lfn, (BYTE)8, (BYTE)CBM_READ, filename)) != 0) {
+ c128_perror(c, "cbm_open(log) for reading");
+ exit(1);
+ }
+ log_heap_offset = cbm_read(lfn, log_heap_buf, LOG_SIZE);
+ if (log_heap_offset < 0) {
+ cprintf("error while cbm_read()ing the logfile\r\n");
+ exit(1);
+ }
+ log_heap_flushed = log_heap_offset;
+ log_heap_buf[log_heap_offset] = '\0';
+ cbm_close(lfn);
+ }