From c6d4a8bff1cd38f9416c36178b1b5dc15451e187 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Tue, 3 Jun 2025 11:24:36 +0200 Subject: [PATCH] device: added verbose_level attribute --- src/device.cpp | 2 +- src/device.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device.cpp b/src/device.cpp index 48b62ab..e29cd1d 100644 --- a/src/device.cpp +++ b/src/device.cpp @@ -15,7 +15,7 @@ Device::Device(Jtag *jtag, string filename, const string &file_type, _filename(filename), _file_extension(filename.substr(filename.find_last_of(".") +1)), _mode(NONE_MODE), _verify(verify), _verbose(verbose > 0), - _quiet(verbose < 0) + _verbose_level(verbose), _quiet(verbose < 0) { /* extension overwritten by user */ if (!file_type.empty()) { diff --git a/src/device.hpp b/src/device.hpp index d4dd21b..70db627 100644 --- a/src/device.hpp +++ b/src/device.hpp @@ -70,6 +70,7 @@ class Device { enum prog_mode _mode; bool _verify; /**< verify flash write */ bool _verbose; + int8_t _verbose_level; bool _quiet; };