static int hexMode = HEXMODE;
-static const char trbcmd_version[] = "$Revision: 2.25 $";
+static const char trbcmd_version[] = "$Revision: 2.26 $";
/* ------ MAIN ---------------------------------------------------------- */
exit(EXIT_FAILURE);
}
}
+
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
} else if (strncmp(cmd[0], "r", CMD_SIZE) == 0) {
/*******************************************/
fprintf(stdout, "0x%04x 0x%08x\n",
data[i], data[i + 1]);
}
+
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
} else if (strncmp(cmd[0], "rm", CMD_SIZE) == 0) {
/*******************************************/
}
}
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
if (data != NULL) free(data);
} else if (strncmp(cmd[0], "wm", CMD_SIZE) == 0) {
exit(EXIT_FAILURE);
}
}
+
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
} else if (strncmp(cmd[0], "i", CMD_SIZE) == 0) {
/*******************************************/
uidBuffer[i + 1],
uidBuffer[i + 2]);
}
+
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
} else if (strncmp(cmd[0], "s", CMD_SIZE) == 0) {
/*******************************************/
exit(EXIT_FAILURE);
}
}
+
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
} else if (strncmp(cmd[0], "T", CMD_SIZE) == 0) {
/*******************************************/
if (trb_errno != TRB_ENDPOINT_NOT_REACHED) {
exit(EXIT_FAILURE);
}
- }
+ }
+
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
} else if (strncmp(cmd[0], "TR", CMD_SIZE) == 0) {
/*********************************************/
exit(EXIT_FAILURE);
}
}
+
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
} else if (strncmp(cmd[0], "I", CMD_SIZE) == 0) {
/*******************************************/
for (i = 0; i < status; i++) {
fprintf(stdout, "0x%08x\n", buffer[i]);
}
+
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
} else if (strncmp(cmd[0], "f", CMD_SIZE) == 0) {
/*******************************************/
exit(EXIT_FAILURE);
}
+ /* Check Status-Bits */
+ if ((trb_term.status_common != 0x01) ||
+ (trb_term.status_channel != 0)) {
+ if (scriptFile != NULL) {
+ fprintf(stderr, "Line #%d: ", lineCtr);
+ }
+ fprintf(stderr, "WARNING Status-Bits:\n%s\n", trb_strterm(trb_term));
+ }
+
} else if (strncmp(cmd[0], "R", CMD_SIZE) == 0) {
/*******************************************/