From c79cca04bed78839a18e73f3996805eb8001a812 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Thu, 3 Dec 2009 04:14:28 -0800 Subject: [PATCH] change #include "log.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "log.h" the following form should be used. #include The exception is from .c files in the same directory. --- src/flash/common.c | 2 +- src/flash/flash.h | 2 +- src/flash/mflash.c | 2 +- src/hello.c | 2 +- src/jtag/jtag.h | 2 +- src/pld/pld.c | 2 +- src/pld/xilinx_bit.c | 2 +- src/server/httpd_stubs.c | 2 +- src/server/server.h | 2 +- src/target/arm_disassembler.c | 2 +- src/target/arm_simulator.c | 2 +- src/target/armv4_5_cache.c | 2 +- src/target/armv4_5_mmu.c | 2 +- src/target/breakpoints.c | 2 +- src/target/image.c | 2 +- src/target/register.c | 2 +- src/target/target_request.c | 2 +- src/target/testee.c | 2 +- src/target/trace.c | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/flash/common.c b/src/flash/common.c index 072e6912f..17bc81c2a 100644 --- a/src/flash/common.c +++ b/src/flash/common.c @@ -21,7 +21,7 @@ #endif #include "common.h" -#include "log.h" +#include unsigned get_flash_name_index(const char *name) { diff --git a/src/flash/flash.h b/src/flash/flash.h index 92727bf9e..fea7372c4 100644 --- a/src/flash/flash.h +++ b/src/flash/flash.h @@ -27,7 +27,7 @@ #define FLASH_H #include "target.h" -#include "log.h" +#include struct image; diff --git a/src/flash/mflash.c b/src/flash/mflash.c index 72faae224..43d8ddd32 100644 --- a/src/flash/mflash.c +++ b/src/flash/mflash.c @@ -25,7 +25,7 @@ #include "target.h" #include "time_support.h" #include -#include "log.h" +#include static int s3c2440_set_gpio_to_output (struct mflash_gpio_num gpio); diff --git a/src/hello.c b/src/hello.c index cfd6e2fe9..0cd06adc1 100644 --- a/src/hello.c +++ b/src/hello.c @@ -20,7 +20,7 @@ #ifdef HAVE_CONFIG_H #include #endif -#include "log.h" +#include COMMAND_HANDLER(handle_foo_command) { diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index 694e2f7e0..eaa0c7c7a 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -24,7 +24,7 @@ #define JTAG_H #include -#include "log.h" +#include #ifdef _DEBUG_JTAG_IO_ #define DEBUG_JTAG_IO(expr ...) \ diff --git a/src/pld/pld.c b/src/pld/pld.c index df7ac0de0..985e36485 100644 --- a/src/pld/pld.c +++ b/src/pld/pld.c @@ -22,7 +22,7 @@ #endif #include "pld.h" -#include "log.h" +#include #include "time_support.h" diff --git a/src/pld/xilinx_bit.c b/src/pld/xilinx_bit.c index 70edbf571..1ae1ea8df 100644 --- a/src/pld/xilinx_bit.c +++ b/src/pld/xilinx_bit.c @@ -23,7 +23,7 @@ #include "xilinx_bit.h" #include "pld.h" -#include "log.h" +#include #include diff --git a/src/server/httpd_stubs.c b/src/server/httpd_stubs.c index 6c289afa9..0360fe61b 100644 --- a/src/server/httpd_stubs.c +++ b/src/server/httpd_stubs.c @@ -21,7 +21,7 @@ #include #endif #include "httpd.h" -#include "log.h" +#include int httpd_start(struct command_context *cmd_ctx) { diff --git a/src/server/server.h b/src/server/server.h index e632bf1e2..be1afbe40 100644 --- a/src/server/server.h +++ b/src/server/server.h @@ -26,7 +26,7 @@ #ifndef SERVER_H #define SERVER_H -#include "log.h" +#include #ifdef HAVE_NETINET_IN_H #include diff --git a/src/target/arm_disassembler.c b/src/target/arm_disassembler.c index b93df64d1..29ca23cae 100644 --- a/src/target/arm_disassembler.c +++ b/src/target/arm_disassembler.c @@ -25,7 +25,7 @@ #include "target.h" #include "arm_disassembler.h" -#include "log.h" +#include /* diff --git a/src/target/arm_simulator.c b/src/target/arm_simulator.c index b96a08a18..4b8d86e7a 100644 --- a/src/target/arm_simulator.c +++ b/src/target/arm_simulator.c @@ -29,7 +29,7 @@ #include "arm_simulator.h" #include #include "register.h" -#include "log.h" +#include static uint32_t arm_shift(uint8_t shift, uint32_t Rm, diff --git a/src/target/armv4_5_cache.c b/src/target/armv4_5_cache.c index 58fc0c1d5..dcbcef3a1 100644 --- a/src/target/armv4_5_cache.c +++ b/src/target/armv4_5_cache.c @@ -22,7 +22,7 @@ #endif #include "armv4_5_cache.h" -#include "log.h" +#include int armv4_5_identify_cache(uint32_t cache_type_reg, struct armv4_5_cache_common *cache) { diff --git a/src/target/armv4_5_mmu.c b/src/target/armv4_5_mmu.c index 4651960f9..4d2fbeeb2 100644 --- a/src/target/armv4_5_mmu.c +++ b/src/target/armv4_5_mmu.c @@ -21,7 +21,7 @@ #include "config.h" #endif -#include "log.h" +#include #include "target.h" #include "armv4_5_mmu.h" diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c index 2542c41a6..637f681d7 100644 --- a/src/target/breakpoints.c +++ b/src/target/breakpoints.c @@ -22,7 +22,7 @@ #endif #include "target.h" -#include "log.h" +#include #include "breakpoints.h" diff --git a/src/target/image.c b/src/target/image.c index ca7123adc..f8d05292c 100644 --- a/src/target/image.c +++ b/src/target/image.c @@ -32,7 +32,7 @@ #include "image.h" #include "target.h" -#include "log.h" +#include /* convert ELF header field to host endianness */ diff --git a/src/target/register.c b/src/target/register.c index 392455d01..7b26b740e 100644 --- a/src/target/register.c +++ b/src/target/register.c @@ -26,7 +26,7 @@ #include "types.h" #include "register.h" -#include "log.h" +#include /** * @file diff --git a/src/target/target_request.c b/src/target/target_request.c index c66cd04c1..fc0ba1ac0 100644 --- a/src/target/target_request.c +++ b/src/target/target_request.c @@ -32,7 +32,7 @@ #include "target_type.h" #include #include "trace.h" -#include "log.h" +#include static int charmsg_mode = 0; diff --git a/src/target/testee.c b/src/target/testee.c index f85823224..45273887b 100644 --- a/src/target/testee.c +++ b/src/target/testee.c @@ -22,7 +22,7 @@ #endif #include "target.h" #include "target_type.h" -#include "log.h" +#include #include "../hello.h" static const struct command_registration testee_command_handlers[] = { diff --git a/src/target/trace.c b/src/target/trace.c index f257592b2..99d6bae3b 100644 --- a/src/target/trace.c +++ b/src/target/trace.c @@ -21,7 +21,7 @@ #include "config.h" #endif -#include "log.h" +#include #include "trace.h" #include "target.h"