Browse Source

change #include "log.h" to <helper/log.h>

Changes from the flat namespace to heirarchical one.  Instead of writing:

	#include "log.h"

the following form should be used.

	#include <helper/log.h>

The exception is from .c files in the same directory.
tags/v0.4.0-rc1
Zachary T Welch 14 years ago
parent
commit
c79cca04be
19 changed files with 19 additions and 19 deletions
  1. +1
    -1
      src/flash/common.c
  2. +1
    -1
      src/flash/flash.h
  3. +1
    -1
      src/flash/mflash.c
  4. +1
    -1
      src/hello.c
  5. +1
    -1
      src/jtag/jtag.h
  6. +1
    -1
      src/pld/pld.c
  7. +1
    -1
      src/pld/xilinx_bit.c
  8. +1
    -1
      src/server/httpd_stubs.c
  9. +1
    -1
      src/server/server.h
  10. +1
    -1
      src/target/arm_disassembler.c
  11. +1
    -1
      src/target/arm_simulator.c
  12. +1
    -1
      src/target/armv4_5_cache.c
  13. +1
    -1
      src/target/armv4_5_mmu.c
  14. +1
    -1
      src/target/breakpoints.c
  15. +1
    -1
      src/target/image.c
  16. +1
    -1
      src/target/register.c
  17. +1
    -1
      src/target/target_request.c
  18. +1
    -1
      src/target/testee.c
  19. +1
    -1
      src/target/trace.c

+ 1
- 1
src/flash/common.c View File

@@ -21,7 +21,7 @@
#endif #endif


#include "common.h" #include "common.h"
#include "log.h"
#include <helper/log.h>


unsigned get_flash_name_index(const char *name) unsigned get_flash_name_index(const char *name)
{ {


+ 1
- 1
src/flash/flash.h View File

@@ -27,7 +27,7 @@
#define FLASH_H #define FLASH_H


#include "target.h" #include "target.h"
#include "log.h"
#include <helper/log.h>


struct image; struct image;




+ 1
- 1
src/flash/mflash.c View File

@@ -25,7 +25,7 @@
#include "target.h" #include "target.h"
#include "time_support.h" #include "time_support.h"
#include <helper/fileio.h> #include <helper/fileio.h>
#include "log.h"
#include <helper/log.h>




static int s3c2440_set_gpio_to_output (struct mflash_gpio_num gpio); static int s3c2440_set_gpio_to_output (struct mflash_gpio_num gpio);


+ 1
- 1
src/hello.c View File

@@ -20,7 +20,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif
#include "log.h"
#include <helper/log.h>


COMMAND_HANDLER(handle_foo_command) COMMAND_HANDLER(handle_foo_command)
{ {


+ 1
- 1
src/jtag/jtag.h View File

@@ -24,7 +24,7 @@
#define JTAG_H #define JTAG_H


#include <helper/binarybuffer.h> #include <helper/binarybuffer.h>
#include "log.h"
#include <helper/log.h>


#ifdef _DEBUG_JTAG_IO_ #ifdef _DEBUG_JTAG_IO_
#define DEBUG_JTAG_IO(expr ...) \ #define DEBUG_JTAG_IO(expr ...) \


+ 1
- 1
src/pld/pld.c View File

@@ -22,7 +22,7 @@
#endif #endif


#include "pld.h" #include "pld.h"
#include "log.h"
#include <helper/log.h>
#include "time_support.h" #include "time_support.h"






+ 1
- 1
src/pld/xilinx_bit.c View File

@@ -23,7 +23,7 @@


#include "xilinx_bit.h" #include "xilinx_bit.h"
#include "pld.h" #include "pld.h"
#include "log.h"
#include <helper/log.h>


#include <sys/stat.h> #include <sys/stat.h>




+ 1
- 1
src/server/httpd_stubs.c View File

@@ -21,7 +21,7 @@
#include <config.h> #include <config.h>
#endif #endif
#include "httpd.h" #include "httpd.h"
#include "log.h"
#include <helper/log.h>


int httpd_start(struct command_context *cmd_ctx) int httpd_start(struct command_context *cmd_ctx)
{ {


+ 1
- 1
src/server/server.h View File

@@ -26,7 +26,7 @@
#ifndef SERVER_H #ifndef SERVER_H
#define SERVER_H #define SERVER_H


#include "log.h"
#include <helper/log.h>


#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> #include <netinet/in.h>


+ 1
- 1
src/target/arm_disassembler.c View File

@@ -25,7 +25,7 @@


#include "target.h" #include "target.h"
#include "arm_disassembler.h" #include "arm_disassembler.h"
#include "log.h"
#include <helper/log.h>




/* /*


+ 1
- 1
src/target/arm_simulator.c View File

@@ -29,7 +29,7 @@
#include "arm_simulator.h" #include "arm_simulator.h"
#include <helper/binarybuffer.h> #include <helper/binarybuffer.h>
#include "register.h" #include "register.h"
#include "log.h"
#include <helper/log.h>




static uint32_t arm_shift(uint8_t shift, uint32_t Rm, static uint32_t arm_shift(uint8_t shift, uint32_t Rm,


+ 1
- 1
src/target/armv4_5_cache.c View File

@@ -22,7 +22,7 @@
#endif #endif


#include "armv4_5_cache.h" #include "armv4_5_cache.h"
#include "log.h"
#include <helper/log.h>


int armv4_5_identify_cache(uint32_t cache_type_reg, struct armv4_5_cache_common *cache) int armv4_5_identify_cache(uint32_t cache_type_reg, struct armv4_5_cache_common *cache)
{ {


+ 1
- 1
src/target/armv4_5_mmu.c View File

@@ -21,7 +21,7 @@
#include "config.h" #include "config.h"
#endif #endif


#include "log.h"
#include <helper/log.h>
#include "target.h" #include "target.h"
#include "armv4_5_mmu.h" #include "armv4_5_mmu.h"




+ 1
- 1
src/target/breakpoints.c View File

@@ -22,7 +22,7 @@
#endif #endif


#include "target.h" #include "target.h"
#include "log.h"
#include <helper/log.h>
#include "breakpoints.h" #include "breakpoints.h"






+ 1
- 1
src/target/image.c View File

@@ -32,7 +32,7 @@


#include "image.h" #include "image.h"
#include "target.h" #include "target.h"
#include "log.h"
#include <helper/log.h>




/* convert ELF header field to host endianness */ /* convert ELF header field to host endianness */


+ 1
- 1
src/target/register.c View File

@@ -26,7 +26,7 @@


#include "types.h" #include "types.h"
#include "register.h" #include "register.h"
#include "log.h"
#include <helper/log.h>


/** /**
* @file * @file


+ 1
- 1
src/target/target_request.c View File

@@ -32,7 +32,7 @@
#include "target_type.h" #include "target_type.h"
#include <helper/binarybuffer.h> #include <helper/binarybuffer.h>
#include "trace.h" #include "trace.h"
#include "log.h"
#include <helper/log.h>




static int charmsg_mode = 0; static int charmsg_mode = 0;


+ 1
- 1
src/target/testee.c View File

@@ -22,7 +22,7 @@
#endif #endif
#include "target.h" #include "target.h"
#include "target_type.h" #include "target_type.h"
#include "log.h"
#include <helper/log.h>
#include "../hello.h" #include "../hello.h"


static const struct command_registration testee_command_handlers[] = { static const struct command_registration testee_command_handlers[] = {


+ 1
- 1
src/target/trace.c View File

@@ -21,7 +21,7 @@
#include "config.h" #include "config.h"
#endif #endif


#include "log.h"
#include <helper/log.h>
#include "trace.h" #include "trace.h"
#include "target.h" #include "target.h"




Loading…
Cancel
Save