fix on debug compile

This commit is contained in:
Ryo Nakamura
2022-10-30 07:41:49 +00:00
parent 6e37331b4a
commit 96c10a700a
2 changed files with 1 additions and 3 deletions

View File

@@ -2,8 +2,6 @@ cmake_minimum_required(VERSION 3.13)
project(mscp C) project(mscp C)
set(CMAKE_C_FLAGS "-Wall -g")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG")
add_executable(mscp src/main.c src/platform.c src/ssh.c src/file.c src/pprint.c) add_executable(mscp src/main.c src/platform.c src/ssh.c src/file.c src/pprint.c)

View File

@@ -484,7 +484,7 @@ void chunk_dump(struct list_head *chunk_list)
list_for_each_entry(c, chunk_list, list) { list_for_each_entry(c, chunk_list, list) {
pr_debug("%s %s 0x%010lx-0x%010lx %lu-byte\n", pr_debug("%s %s 0x%010lx-0x%010lx %lu-byte\n",
c->f->src_path, strloc(f->src_is_remote), c->f->src_path, strloc(c->f->src_is_remote),
c->off, c->off + c->len, c->len); c->off, c->off + c->len, c->len);
} }
} }