summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/message.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2015-06-13 13:28:23 +0200
committerFrancis Dupont <fdupont@isc.org>2015-06-13 13:28:23 +0200
commit64f19053e2a85a402ac1935aad87d03144fa5090 (patch)
treeaebd7fa8d20fef7f2851c8a5dbde53eba83771c8 /src/lib/dns/message.cc
parent[3899] Swapped max labels/wire checks to get max labels errors (diff)
downloadkea-64f19053e2a85a402ac1935aad87d03144fa5090.tar.xz
kea-64f19053e2a85a402ac1935aad87d03144fa5090.zip
[3899] Switched to hexadecimal for flags
Diffstat (limited to 'src/lib/dns/message.cc')
-rw-r--r--src/lib/dns/message.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dns/message.cc b/src/lib/dns/message.cc
index 33cd07b2dc..9c4468c5b4 100644
--- a/src/lib/dns/message.cc
+++ b/src/lib/dns/message.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2009, 2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
@@ -398,7 +398,7 @@ Message::getHeaderFlag(const HeaderFlag flag) const {
if (flag == 0 || (flag & ~HEADERFLAG_MASK) != 0) {
isc_throw(InvalidParameter,
"Message::getHeaderFlag:: Invalid flag is specified: " <<
- flag);
+ "0x" << std::hex << flag);
}
return ((impl_->flags_ & flag) != 0);
}
@@ -412,7 +412,7 @@ Message::setHeaderFlag(const HeaderFlag flag, const bool on) {
if (flag == 0 || (flag & ~HEADERFLAG_MASK) != 0) {
isc_throw(InvalidParameter,
"Message::getHeaderFlag:: Invalid flag is specified: " <<
- flag);
+ "0x" << std::hex << flag);
}
if (on) {
impl_->flags_ |= flag;