From add633bdf90b979f3dc4882867a5ab99a87e38bb Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 23 Oct 2012 08:38:33 -0600 Subject: [PATCH] build: print uids as unsigned Reported by Michal Privoznik. * src/security/security_dac.c (virSecurityDACGenLabel): Use correct format. --- src/security/security_dac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/security/security_dac.c b/src/security/security_dac.c index a1aa0ef824..0bdbd51023 100644 --- a/src/security/security_dac.c +++ b/src/security/security_dac.c @@ -921,7 +921,7 @@ virSecurityDACGenLabel(virSecurityManagerPtr mgr, } break; case VIR_DOMAIN_SECLABEL_DYNAMIC: - if (virAsprintf(&seclabel->label, "%d:%d", + if (virAsprintf(&seclabel->label, "%u:%u", (unsigned int) priv->user, (unsigned int) priv->group) < 0) { virReportOOMError();