1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: rdt_Misc.cpp 4 5 Copyright (C)2009-2012 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 46347 $ 14 *---------------------------------------------------------------------------*/ 15 16 17 #include "stdafx.h" 18 19 #include <nn/rdt/CTR/rdt_Misc.h> 20 21 #include <nn/rdt/CTR/rdt_Result.h> 22 23 24 namespace 25 { 26 27 bit32 s_logLevel = nn::rdt::CTR::LOG_LEVEL_NONE; 28 29 } // end of anonymous namespace 30 31 namespace nn { namespace rdt { namespace CTR { 32 33 SetLogLevel(const bit32 level)34nn::Result SetLogLevel(const bit32 level) 35 { 36 switch(level) 37 { 38 case LOG_LEVEL_NONE: 39 case LOG_LEVEL_ALL: 40 s_logLevel = level; 41 return ResultSuccess(); 42 default: 43 return ResultInvalidValue(); 44 } 45 } 46 47 GetLogLevel(void)48bit32 GetLogLevel(void) 49 { 50 return s_logLevel; 51 } 52 53 54 }}} // namespace nn::rdt::CTR 55