diff --git a/master/master.c b/master/master.c
index 1c4b0b8c55bf49cd2514c38f1d5dec1443dadaa4..ad26bc8d5d46b38499bced60ae3e0358dc1a9e42 100644
--- a/master/master.c
+++ b/master/master.c
@@ -1673,7 +1673,7 @@ ec_slave_config_t *ecrt_master_slave_config_err(ec_master_t *master,
 
     if (master->debug_level)
         EC_DBG("ecrt_master_slave_config(master = 0x%x, alias = %u, "
-                "position = %u, vendor_id = 0x%x, product_code = 0x%x)\n",
+                "position = %u, vendor_id = 0x%08x, product_code = 0x%08x)\n",
                 (u32) master, alias, position, vendor_id, product_code);
 
     list_for_each_entry(sc, &master->configs, list) {