19 #include <signaldata/TcKeyConf.hpp>
20 #include <BlockNumbers.h>
23 printTCKEYCONF(FILE * output,
const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo){
26 if (receiverBlockNo == API_PACKED) {
28 Uint32 Theader = * theData++;
29 Uint32 TpacketLen = (Theader & 0x1F) + 3;
30 Uint32 TrecBlockNo = Theader >> 16;
33 fprintf(output,
"Block: %d %d %d\n", TrecBlockNo, len, TpacketLen);
34 printTCKEYCONF(output, theData, TpacketLen, TrecBlockNo);
35 assert(len >= (1 + TpacketLen));
36 len -= (1 + TpacketLen);
37 theData += TpacketLen;
45 Uint32 confInfo = sig->confInfo;
46 Uint32 noOfOp = TcKeyConf::getNoOfOperations(confInfo);
47 if (noOfOp > 10) noOfOp = 10;
48 fprintf(output,
" apiConnectPtr: H'%.8x, gci: %u/%u, transId:(H'%.8x, H'%.8x)\n",
50 sig->gci_hi, *(Uint32*)&sig->operations[noOfOp],
51 sig->transId1, sig->transId2);
53 fprintf(output,
" noOfOperations: %u, commitFlag: %s, markerFlag: %s\n",
55 (TcKeyConf::getCommitFlag(confInfo) == 0)?
"false":
"true",
56 (TcKeyConf::getMarkerFlag(confInfo) == 0)?
"false":
"true");
57 fprintf(output,
"Operations:\n");
58 for(i = 0; i < noOfOp; i++) {
59 if(sig->operations[i].attrInfoLen > TcKeyConf::DirtyReadBit)
61 " apiOperationPtr: H'%.8x, simplereadnode: %u\n",
62 sig->operations[i].apiOperationPtr,
63 sig->operations[i].attrInfoLen & (~TcKeyConf::DirtyReadBit));
66 " apiOperationPtr: H'%.8x, attrInfoLen: %u\n",
67 sig->operations[i].apiOperationPtr,
68 sig->operations[i].attrInfoLen);