diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-04-25 22:38:32 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-07-02 17:10:03 +0100 |
commit | 9e358ac2c0a759982064dd53a974b50ebaeb19f5 (patch) | |
tree | a877d741b77854da4d220cbabf4a6de1d4dd7c6b /src/helper/log.c | |
parent | 3d135a5c70db67ed13cc93eeab0b700f6ef8a412 (diff) | |
download | riscv-openocd-9e358ac2c0a759982064dd53a974b50ebaeb19f5.zip riscv-openocd-9e358ac2c0a759982064dd53a974b50ebaeb19f5.tar.gz riscv-openocd-9e358ac2c0a759982064dd53a974b50ebaeb19f5.tar.bz2 |
helper: rename camelcase symbols
No cross dependency, just changes internal to each file/function.
Change-Id: I16568ddcd8304f5e6748c2e19f32421b047b0357
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6300
Tested-by: jenkins
Diffstat (limited to 'src/helper/log.c')
-rw-r--r-- | src/helper/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helper/log.c b/src/helper/log.c index 36b59fe..785a8bd 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -473,11 +473,11 @@ void kept_alive(void) /* if we sleep for extended periods of time, we must invoke keep_alive() intermittently */ void alive_sleep(uint64_t ms) { - uint64_t napTime = 10; - for (uint64_t i = 0; i < ms; i += napTime) { + uint64_t nap_time = 10; + for (uint64_t i = 0; i < ms; i += nap_time) { uint64_t sleep_a_bit = ms - i; - if (sleep_a_bit > napTime) - sleep_a_bit = napTime; + if (sleep_a_bit > nap_time) + sleep_a_bit = nap_time; usleep(sleep_a_bit * 1000); keep_alive(); |