~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to storage/ndb/src/common/debugger/signaldata/UtilDelete.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2003 MySQL AB
 
2
 
 
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.
 
6
 
 
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.
 
11
 
 
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
#include <signaldata/UtilDelete.hpp>
 
17
 
 
18
bool 
 
19
printUTIL_DELETE_REQ(FILE * out, const Uint32 * data, Uint32 l, Uint16 b){
 
20
  (void)l;  // Don't want compiler warning
 
21
  (void)b;  // Don't want compiler warning
 
22
 
 
23
  UtilDeleteReq* sig = (UtilDeleteReq*)data;
 
24
  fprintf(out, " senderData: %d prepareId: %d totalDataLen: %d\n",
 
25
          sig->senderData,
 
26
          sig->prepareId,
 
27
          sig->totalDataLen);
 
28
  fprintf(out,
 
29
          " H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x\n"
 
30
          " H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x\n"
 
31
          " H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x\n",
 
32
          sig->attrData[0], sig->attrData[1], sig->attrData[2],
 
33
          sig->attrData[3], sig->attrData[4], sig->attrData[5],
 
34
          sig->attrData[6], sig->attrData[7], sig->attrData[8],
 
35
          sig->attrData[9], sig->attrData[10], sig->attrData[11],
 
36
          sig->attrData[12], sig->attrData[13], sig->attrData[14],
 
37
          sig->attrData[15], sig->attrData[16], sig->attrData[17],
 
38
          sig->attrData[18], sig->attrData[19], sig->attrData[20],
 
39
          sig->attrData[21]
 
40
          );
 
41
 
 
42
  return true;
 
43
}
 
44
 
 
45
bool 
 
46
printUTIL_DELETE_CONF(FILE * out, const Uint32 * data, Uint32 l, Uint16 b){
 
47
  (void)l;  // Don't want compiler warning
 
48
  (void)b;  // Don't want compiler warning
 
49
 
 
50
  UtilDeleteConf* sig = (UtilDeleteConf*)data;
 
51
  fprintf(out, " senderData: %d\n", sig->senderData);
 
52
  return true;
 
53
}
 
54
 
 
55
bool 
 
56
printUTIL_DELETE_REF(FILE * out, const Uint32 * data, Uint32 l, Uint16 b){
 
57
  (void)l;  // Don't want compiler warning
 
58
  (void)b;  // Don't want compiler warning
 
59
 
 
60
  UtilDeleteRef* sig = (UtilDeleteRef*)data;
 
61
  fprintf(out, " senderData: %d\n", sig->senderData);
 
62
  fprintf(out, " errorCode: %d\n", sig->errorCode);
 
63
  return true;
 
64
}