aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs
index dfacaad..b78bb6f 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -24,7 +24,7 @@ macro_rules! syscall {
pub fn format_client_id(client_id: &[u8]) -> Result<String> {
client_id
.iter()
- .map(|octet| format!("{:x}", octet))
+ .map(|octet| format!("{:02x}", octet))
.reduce(|acc, octet| acc + ":" + &octet)
.ok_or(Error::EmptyClientId)
}