Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-apple committed Mar 9, 2020
1 parent 99376f2 commit 8b997b1
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/lib/core/CHIPConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef CHIP_CONFIG_H_
#define CHIP_CONFIG_H_

#include "SystemConfig.h"
#include <SystemConfig.h>

/* COMING SOON: making the INET Layer optional entails making this inclusion optional. */
//#include "InetConfig.h"
Expand Down
5 changes: 2 additions & 3 deletions src/lib/core/CHIPCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#ifndef CHIPCORE_H_
#define CHIPCORE_H_

#include "core/CHIPConfig.h"
#include <core/CHIPConfig.h>
/*
#include <SystemLayer/SystemLayer.h>
Expand All @@ -35,7 +35,6 @@
#include <InetLayer/InetLayer.h>
*/
//Currently only used on Sapphire
#define CHIP_CORE_IDENTITY "chip-core"
#define CHIP_CORE_PREFIX CHIP_CORE_IDENTITY ": "

Expand All @@ -49,7 +48,7 @@ using namespace ::Inet;
*/
}

#include "core/CHIPError.h"
#include <core/CHIPError.h>
/*
#include "core/CHIPKeyIds.h"
#include "core/CHIPFabricState.h"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/core/CHIPError.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

#include <stddef.h>

#include "core/CHIPCore.h"
#include "support/ErrorStr.h"
#include <core/CHIPCore.h>
#include <support/ErrorStr.h>

namespace chip {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/core/CHIPError.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef CHIP_ERROR_H
#define CHIP_ERROR_H

#include "CHIPConfig.h"
#include <CHIPConfig.h>
// clang-format off

/**
Expand Down
4 changes: 2 additions & 2 deletions src/lib/support/CodeUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#ifndef CODEUTILS_H_
#define CODEUTILS_H_

#include "core/CHIPError.h"
#include "support/ErrorStr.h"
#include <core/CHIPError.h>
#include <support/ErrorStr.h>
#include "support/logging/CHIPLogging.h"

/**
Expand Down
4 changes: 1 addition & 3 deletions src/lib/support/logging/CHIPLogging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <stdio.h>

#include "support/DLLUtil.h"
#include "core/CHIPCore.h"
#include <core/CHIPCore.h>
#include "support/CodeUtils.h"
#include "CHIPLogging.h"

Expand Down Expand Up @@ -77,12 +77,10 @@ static const char ModuleNames[] =
"SP\0" // ServiceProvisioning
"SWU" // SoftwareUpdate
"TP\0" // TokenPairing
"HL\0" // HeatLink
"TS\0" // TimeServices
"WT\0" // chipTunnel
"HB\0" // Heartbeat
"WSL" // chipSystemLayer
"DLP" // DropcamLegacyPairing
"EVL" // Event Logging
"SPT" // Support
;
Expand Down
4 changes: 1 addition & 3 deletions src/lib/support/logging/CHIPLogging.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <stdint.h>

#include "core/CHIPConfig.h"
#include <core/CHIPConfig.h>

/**
* @namespace chip::Logging
Expand Down Expand Up @@ -98,12 +98,10 @@ enum LogModule
kLogModule_ServiceProvisioning,
kLogModule_SoftwareUpdate,
kLogModule_TokenPairing,
kLogModule_HeatLink,
kLogModule_TimeService,
kLogModule_chipTunnel,
kLogModule_Heartbeat,
kLogModule_chipSystemLayer,
kLogModule_DropcamLegacyPairing,
kLogModule_EventLogging,
kLogModule_Support,

Expand Down

0 comments on commit 8b997b1

Please sign in to comment.