On 9/1/2021 10:14 AM, Bruce Richardson wrote: > On Wed, Sep 01, 2021 at 11:48:21AM +0530, Aman Singh wrote: >> From the logs it is difficult to get the DPDK version >> that was used. So added a debug log to print the same. >> The log has been added in eal_init so it gets printed >> at startup for any application. >> >> Signed-off-by: Aman Singh <aman.deep.si...@intel.com> >> --- >> lib/eal/freebsd/eal.c | 2 +- >> lib/eal/linux/eal.c | 2 +- >> lib/eal/windows/eal.c | 1 + >> 3 files changed, 3 insertions(+), 2 deletions(-) >> > Note: EAL already has the "-v" flag which prints the version number at > startup. >
More common usage is when -v (--version) is provided app prints the version and exits. No strong opinion but it is possible to have the version output always as debug, and convert '-v' to log and exit.