|
|
| version 1.4, 2004/02/05 13:32:07 | version 1.5, 2004/02/05 17:51:43 |
|---|---|
| Line 446 crom_add_simple_text(struct crom_src *sr | Line 446 crom_add_simple_text(struct crom_src *sr |
| len = strlen(buf); | len = strlen(buf); |
| if (len > MAX_TEXT) { | if (len > MAX_TEXT) { |
| #if __FreeBSD_version < 500000 | #if defined(__DragonFly__) || __FreeBSD_version < 500000 |
| printf("text(%d) trancated to %d.\n", len, MAX_TEXT); | printf("text(%d) trancated to %d.\n", len, MAX_TEXT); |
| #else | #else |
| printf("text(%d) trancated to %td.\n", len, MAX_TEXT); | printf("text(%d) trancated to %td.\n", len, MAX_TEXT); |
| Line 584 main () { | Line 584 main () { |
| /* private company_id */ | /* private company_id */ |
| crom_add_entry(&root, CSRKEY_VENDOR, 0xacde48); | crom_add_entry(&root, CSRKEY_VENDOR, 0xacde48); |
| #ifdef __DragonFly__ | |
| crom_add_simple_text(&src, &root, &text1, "DragonFly"); | |
| crom_add_entry(&root, CSRKEY_HW, __DragonFly_cc_version); | |
| crom_add_simple_text(&src, &root, &text2, "DragonFly-1"); | |
| #else | |
| crom_add_simple_text(&src, &root, &text1, "FreeBSD"); | crom_add_simple_text(&src, &root, &text1, "FreeBSD"); |
| crom_add_entry(&root, CSRKEY_HW, __FreeBSD_version); | crom_add_entry(&root, CSRKEY_HW, __FreeBSD_version); |
| crom_add_simple_text(&src, &root, &text2, "FreeBSD-5"); | crom_add_simple_text(&src, &root, &text2, "FreeBSD-5"); |
| #endif | |
| /* SBP unit directory */ | /* SBP unit directory */ |
| crom_add_chunk(&src, &root, &unit1, CROM_UDIR); | crom_add_chunk(&src, &root, &unit1, CROM_UDIR); |