~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to storage/perfschema/unittest/stub_print_error.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
 
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 Foundation,
 
14
  51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
 
15
 
 
16
#include <my_global.h>
 
17
#include <my_sys.h>
 
18
#include <pfs_global.h>
 
19
 
 
20
bool pfs_initialized= false;
 
21
 
 
22
void *pfs_malloc(size_t size, myf flags)
 
23
{
 
24
  void *ptr= malloc(size);
 
25
  if (ptr && (flags & MY_ZEROFILL))
 
26
    memset(ptr, 0, size);
 
27
  return ptr;
 
28
}
 
29
 
 
30
void pfs_free(void *ptr)
 
31
{
 
32
  if (ptr != NULL)
 
33
    free(ptr);
 
34
}
 
35
 
 
36
void pfs_print_error(const char *format, ...)
 
37
{
 
38
  /* Do not pollute the unit test output with annoying messages. */
 
39
}
 
40