~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/archive_reader.c

  • Committer: Brian Aker
  • Date: 2008-07-15 20:14:05 UTC
  • mfrom: (77.1.112 codestyle)
  • Revision ID: brian@tangent.org-20080715201405-hov2omn1y8k5r00o
Saving import from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
  if (reader_handle.version > 2)
80
80
  {
81
81
    printf("\tMinor version %u\n", reader_handle.minor_version);
82
 
    printf("\tStart position %lu\n", (uint64_t)reader_handle.start);
 
82
    printf("\tStart position %"PRIu64"\n", (uint64_t)reader_handle.start);
83
83
    printf("\tBlock size %u\n", reader_handle.block_size);
84
 
    printf("\tRows %lu\n", reader_handle.rows);
85
 
    printf("\tAutoincrement %lu\n", reader_handle.auto_increment);
86
 
    printf("\tCheck Point %lu\n", reader_handle.check_point);
87
 
    printf("\tForced Flushes %lu\n", reader_handle.forced_flushes);
 
84
    printf("\tRows %"PRIu64"\n", reader_handle.rows);
 
85
    printf("\tAutoincrement %"PRIu64"\n", reader_handle.auto_increment);
 
86
    printf("\tCheck Point %"PRIu64"\n", reader_handle.check_point);
 
87
    printf("\tForced Flushes %"PRIu64"\n", reader_handle.forced_flushes);
88
88
    printf("\tLongest Row %u\n", reader_handle.longest_row);
89
89
    printf("\tShortest Row %u\n", reader_handle.shortest_row);
90
90
    printf("\tState %s\n", ( reader_handle.dirty ? "dirty" : "clean"));
128
128
 
129
129
      if (read > reader_handle.longest_row)
130
130
      {
131
 
        printf("Table is damaged, row %lu is invalid\n", row_count);
 
131
        printf("Table is damaged, row %"PRIu64" is invalid\n", row_count);
132
132
        goto end;
133
133
      }
134
134
    }
135
135
 
136
 
    printf("Found %lu rows\n", row_count);
 
136
    printf("Found %"PRIu64" rows\n", row_count);
137
137
  }
138
138
 
139
139
  if (opt_backup)
148
148
    buffer= (char *)malloc(reader_handle.longest_row);
149
149
    if (buffer == NULL)
150
150
    {
151
 
      printf("Could not allocate memory for row %lu\n", row_count);
 
151
      printf("Could not allocate memory for row %"PRIu64"\n", row_count);
152
152
      goto end;
153
153
    }
154
154