~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/snmp/src/misc/snmp_verbosity.hrl

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%% ``The contents of this file are subject to the Erlang Public License,
 
2
%% Version 1.1, (the "License"); you may not use this file except in
 
3
%% compliance with the License. You should have received a copy of the
 
4
%% Erlang Public License along with this software. If not, it can be
 
5
%% retrieved via the world wide web at http://www.erlang.org/.
 
6
%% 
 
7
%% Software distributed under the License is distributed on an "AS IS"
 
8
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
9
%% the License for the specific language governing rights and limitations
 
10
%% under the License.
 
11
%% 
 
12
%% The Initial Developer of the Original Code is Ericsson Utvecklings AB.
 
13
%% Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
 
14
%% AB. All Rights Reserved.''
 
15
%% 
 
16
%%     $Id$
 
17
%%
 
18
 
 
19
-ifndef(dont_use_verbosity).
 
20
 
 
21
-define(vapply(M,F,A),{vapply, {M,F,A}}).
 
22
 
 
23
-ifdef(VMODULE).
 
24
 
 
25
-define(vinfo(F,A), snmp_verbosity:print(get(verbosity),info, ?VMODULE,F,A)).
 
26
-define(vlog(F,A),  snmp_verbosity:print(get(verbosity),log,  ?VMODULE,F,A)).
 
27
-define(vdebug(F,A),snmp_verbosity:print(get(verbosity),debug,?VMODULE,F,A)).
 
28
-define(vtrace(F,A),snmp_verbosity:print(get(verbosity),trace,?VMODULE,F,A)).
 
29
 
 
30
-else.
 
31
 
 
32
-define(vinfo(F,A), snmp_verbosity:print(get(verbosity),info, F,A)).
 
33
-define(vlog(F,A),  snmp_verbosity:print(get(verbosity),log,  F,A)).
 
34
-define(vdebug(F,A),snmp_verbosity:print(get(verbosity),debug,F,A)).
 
35
-define(vtrace(F,A),snmp_verbosity:print(get(verbosity),trace,F,A)).
 
36
 
 
37
-endif.
 
38
 
 
39
-define(vvalidate(V), snmp_verbosity:validate(V)).
 
40
 
 
41
-define(vinfoc(F,A), snmp_verbosity:printc(get(verbosity),info, F,A)).
 
42
-define(vlogc(F,A),  snmp_verbosity:printc(get(verbosity),log,  F,A)).
 
43
-define(vdebugc(F,A),snmp_verbosity:printc(get(verbosity),debug,F,A)).
 
44
-define(vtracec(F,A),snmp_verbosity:printc(get(verbosity),trace,F,A)).
 
45
 
 
46
-else.
 
47
 
 
48
-define(vvalidate(V),ok).
 
49
 
 
50
-define(vinfo(F,A),ok).
 
51
-define(vlog(F,A),ok).
 
52
-define(vdebug(F,A),ok).
 
53
-define(vtrace(F,A),ok).
 
54
 
 
55
-define(vinfoc(F,A),ok).
 
56
-define(vlogc(F,A),ok).
 
57
-define(vdebugc(F,A),ok).
 
58
-define(vtracec(F,A),ok).
 
59
 
 
60
-endif.
 
61
 
 
62
 
 
63