* Of course we display the real number of CPU (e.g. "1" for 1 CPU and SMP
* kernel) with the LINUX RESTART message.
*
- * If the record_header's type is R_EXTRA then we find only a list of extra
+ * If the record_header's type is R_EXTRA* then we find only a list of extra
* structures following the record_header structure but no statistics ones.
* Note that extra structures may exist for all record_header types
* (R_STATS, R_COMMENT, R_RESTART...). For R_COMMENT and R_RESTART records,
*/
#define R_COMMENT 4
/*
- * R_EXTRA means that extra structures are following current
+ * R_EXTRA* records means that extra structures are following current
* record_header structure, but no statistics structures.
*/
-#define R_EXTRA 5
+#define R_EXTRA_MIN 5
+#define R_EXTRA_MAX 15
/* Maximum length of a comment */
#define MAX_COMMENT_LEN 64
record_hdr->extra_next && (skip_extra_struct(ifd, endian_mismatch, arch_64) < 0))
return 2;
}
- while (record_hdr->record_type == R_EXTRA);
+ while ((record_hdr->record_type >= R_EXTRA_MIN) && (record_hdr->record_type <= R_EXTRA_MAX)) ;
return 0;
}