aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/dtc/dtc.cc
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2017-06-23 20:21:53 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2017-06-23 20:21:53 +0000
commitb2dba1f64b5fc452caa812dbd35e39a21d633b90 (patch)
tree3da11ccd98fd878c536da52d427ba22378371e0c /usr.bin/dtc/dtc.cc
parent0369270f712da65ffaa2607400fac958cc3df811 (diff)
Notes
Diffstat (limited to 'usr.bin/dtc/dtc.cc')
-rw-r--r--usr.bin/dtc/dtc.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/dtc/dtc.cc b/usr.bin/dtc/dtc.cc
index 5ba5cb9a3b7a..e111dd5c6802 100644
--- a/usr.bin/dtc/dtc.cc
+++ b/usr.bin/dtc/dtc.cc
@@ -51,14 +51,17 @@ using std::string;
* The current major version of the tool.
*/
int version_major = 0;
+int version_major_compatible = 1;
/**
* The current minor version of the tool.
*/
int version_minor = 5;
+int version_minor_compatible = 4;
/**
* The current patch level of the tool.
*/
int version_patch = 0;
+int version_patch_compatible = 0;
static void usage(const string &argv0)
{
@@ -77,8 +80,10 @@ static void usage(const string &argv0)
*/
static void version(const char* progname)
{
- fprintf(stderr, "Version: %s %d.%d.%d\n", progname, version_major,
- version_minor, version_patch);
+ fprintf(stdout, "Version: %s %d.%d.%d compatible with gpl dtc %d.%d.%d\n", progname,
+ version_major, version_minor, version_patch,
+ version_major_compatible, version_minor_compatible,
+ version_patch_compatible);
}
using fdt::device_tree;