debuggers.hg

changeset 19990:1033c6cdec62

tmem: No noise when disabled and not configured

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jul 16 08:30:23 2009 +0100 (2009-07-16)
parents 8368aff1d759
children fe4c6845a9d7
files xen/common/tmem.c
line diff
     1.1 --- a/xen/common/tmem.c	Thu Jul 16 08:26:29 2009 +0100
     1.2 +++ b/xen/common/tmem.c	Thu Jul 16 08:30:23 2009 +0100
     1.3 @@ -1812,7 +1812,6 @@ EXPORT long do_tmem_op(tmem_cli_op_t uop
     1.4      bool_t non_succ_get = 0, non_succ_put = 0;
     1.5      bool_t flush = 0, flush_obj = 0;
     1.6      bool_t tmem_write_lock_set = 0, tmem_read_lock_set = 0;
     1.7 -    static bool_t warned = 0;
     1.8      DECL_LOCAL_CYC_COUNTER(succ_get);
     1.9      DECL_LOCAL_CYC_COUNTER(succ_put);
    1.10      DECL_LOCAL_CYC_COUNTER(non_succ_get);
    1.11 @@ -1821,12 +1820,7 @@ EXPORT long do_tmem_op(tmem_cli_op_t uop
    1.12      DECL_LOCAL_CYC_COUNTER(flush_obj);
    1.13  
    1.14      if ( !tmem_initialized )
    1.15 -    {
    1.16 -        if ( !warned )
    1.17 -            printk("tmem: must specify tmem parameter on xen boot line\n");
    1.18 -        warned = 1;
    1.19          return -ENODEV;
    1.20 -    }
    1.21  
    1.22      total_tmem_ops++;
    1.23