Lines Matching +defs:n +defs:payload
195 (void) fprintf(stderr, "Error flushing output: %s\n",
216 error(gettext("Error writing output: %s\n"),
229 error(gettext("Error writing output: %s\n"),
244 error(gettext("Error writing output: %s\n"),
277 error(gettext("Error writing output: %s\n"),
326 "(Fru | Location | Container)*,\n"
327 " Parameter*, ErrorLog?, Parameter*)>\n"
328 "<!ATTLIST FRUID_XML_Tree>\n"
329 "\n"
330 "<!ELEMENT Parameter EMPTY>\n"
331 "<!ATTLIST Parameter type CDATA #REQUIRED>\n"
332 "<!ATTLIST Parameter name CDATA #REQUIRED>\n"
333 "<!ATTLIST Parameter value CDATA #REQUIRED>\n"
334 "\n"
335 "<!ELEMENT Fru (Fru | Location | Container)*>\n"
336 "<!ATTLIST Fru name CDATA #REQUIRED>\n"
337 "\n"
338 "<!ELEMENT Location (Fru | Location | Container)*>\n"
339 "<!ATTLIST Location\n"
340 " name CDATA #IMPLIED\n"
341 " value CDATA #IMPLIED\n"
342 ">\n"
343 "\n"
345 "(Fru | Location | Container)*)>\n"
346 "<!ATTLIST Container name CDATA #REQUIRED>\n"
347 "<!ATTLIST Container imagefile CDATA #IMPLIED>\n"
348 "\n"
349 "<!ELEMENT ContainerData (Segment*)>\n"
350 "<!ATTLIST ContainerData>\n"
351 "\n"
352 "<!ATTLIST Segment name CDATA #REQUIRED>\n"
353 "\n"
354 "<!ELEMENT Index EMPTY>\n"
355 "<!ATTLIST Index value CDATA #REQUIRED>\n"
356 "\n"
357 "<!ELEMENT ErrorLog (#PCDATA)>\n"
358 "<!ATTLIST ErrorLog>\n"
359 "\n");
370 "definition for \"%s\"\n"),
382 output("<!ELEMENT %s (Index_%s*)>\n"
383 "<!ATTLIST Index_%s>\n"
389 output(",\n\t%s", def->enumTable[j].text);
391 output(")>\n");
393 output("<!ELEMENT %s EMPTY>\n"
394 "<!ATTLIST %s value CDATA #REQUIRED>\n",
398 output("<!-- %s valid enumeration values\n");
402 output("\"\n");
404 output("-->\n");
408 output("<!ELEMENT %s (Index*)>\n", element[i]);
410 output("\n");
414 output("<!ATTLIST UNKNOWN tag CDATA \"UNKNOWN\">\n\n");
422 if (tagged[i]) output("\n\t| %s", element[i]);
425 output(")*)>\n");
586 output("\n");
766 output("%*s<%s>\n", indent, "", path);
771 output("%s\"/>\n", timestring);
780 output("\"/>\n");
784 output("%2.2x\"/>\n", data[10]);
788 output("%2.2x\"/>\n", data[11]);
792 output("%2.2x\"/>\n", data[12]);
798 output("\"/>\n");
801 output("%*s</%s>\n", indent, "", path);
804 output("%*s%s\n", indent, "", path);
808 output("%s\n", timestring);
816 output("\n");
819 output("%2.2x\n", data[10]);
822 output("%2.2x\n", data[11]);
826 output("%2.2x\n", data[12]);
831 output("\n");
858 output("%*s<%s>\n", indent, "", path);
863 output("%s\"/>\n", timestring);
869 output("\"/>\n");
872 output("%*s</%s>\n", indent, "", path);
875 output("%*s%s\n", indent, "", path);
879 output("%s\n", timestring);
885 output("\n");
897 n, valid = 1;
918 "(should be less than %d)\n"),
925 "(should not be greater than %d)\n"),
932 "(should equal %d)\n"),
942 error(gettext("%s: Showing all iterations\n"), path);
946 output("%*s<%s>\n", indent, "", path);
948 output("%*s%s (%d iterations)\n", indent, "", path,
954 for (i = head, n = 0, data += 4;
955 n < num;
956 i = ((i + 1) % def->iterationCount), n++) {
957 if (!xml) (void) sprintf((path + bytes), "[%d]", n);
958 iterglobal = n;
963 if (xml) output("%*s</%s>\n", indent, "", path);
969 output("%*s<%s>\n", indent, "", path);
971 output("%*s%s\n", indent, "", path);
984 if (xml) output("%*s</%s>\n", indent, "", path);
996 output("\"/>\n"); /* \" confuses cstyle */
1028 output("\n");
1037 print_packet(fru_tag_t *tag, uint8_t *payload, size_t length, void *args)
1080 print_element(payload, def, "", INDENT);
1099 error(gettext("Error getting segment name: %s\n"),
1105 output("%*s<Segment name=\"%s\">\n", INDENT, "", name);
1107 output("%*sSEGMENT: %s\n", INDENT, "", name);
1110 if (xml) output("%*s</Segment>\n", INDENT, "");
1118 error(gettext("Error processing data in segment \"%s\": %s\n"),
1122 if (xml) output("%*s</Segment>\n", INDENT, "");
1134 output("%s%s\n", path,
1148 output("</Location> <!-- %s -->\n", args);
1159 output("</Fru> <!-- %s -->\n", args);
1171 output("</Container> <!-- %s -->\n", args);
1184 output("<Fru name=\"%s\">\n", name);
1188 output("<Container name=\"%s\">\n", name);
1192 output("<Location name=\"%s\">\n", name);
1215 error(gettext("Error getting node type: %s\n"),
1234 if (xml) output("<ContainerData>\n");
1240 error(gettext("Error processing node \"%s\": %s\n"),
1243 if (xml) output("</ContainerData>\n");
1278 output("<ErrorLog>\n");
1283 output("</ErrorLog>\n");
1293 output("</FRUID_XML_Tree>\n");
1327 "Error creating error log file: %s\n",
1333 output("<?xml version=\"1.0\" ?>\n"
1334 "<!--\n"
1336 "All rights reserved.\n"
1337 " Use is subject to license terms.\n"
1338 "-->\n\n"
1339 "<!DOCTYPE FRUID_XML_Tree SYSTEM \"prtfrureg.dtd\">\n\n"
1340 "<FRUID_XML_Tree>\n");
1345 "%s\n"), strerror(errno));
1353 "infrastructure to provide FRUID data\n"
1355 "information\n"));
1358 error(gettext("Unable to access FRU ID data: %s\n"),
1372 error(gettext("\"%s\" not found\n"), searchpath);
1378 error(gettext("Error processing FRU tree: %s\n"),