From 96c10a700abcc299f335739f23fec09bf089757c Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sun, 30 Oct 2022 07:41:49 +0000 Subject: fix on debug compile --- CMakeLists.txt | 2 -- src/file.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 941a741..3ef53c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,6 @@ cmake_minimum_required(VERSION 3.13) project(mscp C) -set(CMAKE_C_FLAGS "-Wall -g") - 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) diff --git a/src/file.c b/src/file.c index f88aab9..9de1fd9 100644 --- a/src/file.c +++ b/src/file.c @@ -484,7 +484,7 @@ void chunk_dump(struct list_head *chunk_list) list_for_each_entry(c, chunk_list, list) { 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); } } -- cgit v1.2.3