1 /* Copyright (c) 2003, 2005, 2006 MySQL AB
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 of the License.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
16 #include <signaldata/UtilExecute.hpp>
19 printUTIL_EXECUTE_REQ(FILE* out
, const Uint32
* data
, Uint32 len
, Uint16 rec
)
21 const UtilExecuteReq
* const sig
= (UtilExecuteReq
*)data
;
22 fprintf(out
, " senderRef: H'%.8x, senderData: H'%.8x prepareId: %d "
27 sig
->getReleaseFlag());
32 printUTIL_EXECUTE_CONF(FILE* out
, const Uint32
* data
, Uint32 len
, Uint16 rec
)
34 UtilExecuteConf
* sig
= (UtilExecuteConf
*)data
;
35 fprintf(out
, " senderData: H'%.8x\n",
41 printUTIL_EXECUTE_REF(FILE* out
, const Uint32
* data
, Uint32 len
, Uint16 rec
)
43 UtilExecuteRef
* sig
= (UtilExecuteRef
*)data
;
44 fprintf(out
, " senderData: H'%.8x, ", sig
->senderData
);
45 fprintf(out
, " errorCode: %s, ",
46 sig
->errorCode
== UtilExecuteRef::IllegalKeyNumber
?
48 sig
->errorCode
== UtilExecuteRef::IllegalAttrNumber
?
50 sig
->errorCode
== UtilExecuteRef::TCError
?
52 sig
->errorCode
== UtilExecuteRef::AllocationError
?
55 fprintf(out
, " TCErrorCode: %d\n",