diff options
author | Christopher Faylor <me@cgf.cx> | 2004-09-03 05:53:12 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-09-03 05:53:12 +0400 |
commit | 0cd9f74fa5f16ff9573ae52a01296b90b02a9324 (patch) | |
tree | 5eefd8af91f99ee4a81ed759f1ef0f52b7bbfd3b /winsup/cygwin/uinfo.cc | |
parent | 6644c628f58d55c3dd1176d5800adbdbac08a296 (diff) |
Regularize most strace_prints throughout so that %E is always preceded by a
comma and elminate most uses of "foo = %s" to "foo %s".
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r-- | winsup/cygwin/uinfo.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 4c9dacb8f..a7d26780f 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -51,23 +51,23 @@ cygheap_user::init () if (!OpenProcessToken (hMainProc, TOKEN_ADJUST_DEFAULT | TOKEN_QUERY, &ptok)) { - system_printf ("OpenProcessToken(): %E"); + system_printf ("OpenProcessToken(), %E"); return; } if (!GetTokenInformation (ptok, TokenPrimaryGroup, &groups.pgsid, sizeof (cygsid), &siz)) - system_printf ("GetTokenInformation (TokenPrimaryGroup): %E"); + system_printf ("GetTokenInformation (TokenPrimaryGroup), %E"); /* Get the SID from current process and store it in effec_cygsid */ if (!GetTokenInformation (ptok, TokenUser, &effec_cygsid, sizeof (cygsid), &siz)) { - system_printf ("GetTokenInformation (TokenUser): %E"); + system_printf ("GetTokenInformation (TokenUser), %E"); goto out; } /* Set token owner to the same value as token user */ if (!SetTokenInformation (ptok, TokenOwner, &effec_cygsid, sizeof (cygsid))) - debug_printf ("SetTokenInformation(TokenOwner): %E"); + debug_printf ("SetTokenInformation(TokenOwner), %E"); /* Standard way to build a security descriptor with the usual DACL */ char sa_buf[1024]; @@ -81,12 +81,12 @@ cygheap_user::init () { /* Set the default DACL and the process DACL */ if (!SetTokenInformation (ptok, TokenDefaultDacl, &dacl, sizeof (dacl))) - system_printf ("SetTokenInformation (TokenDefaultDacl): %E"); + system_printf ("SetTokenInformation (TokenDefaultDacl), %E"); if (!SetKernelObjectSecurity (hMainProc, DACL_SECURITY_INFORMATION, psd)) - system_printf ("SetKernelObjectSecurity: %E"); + system_printf ("SetKernelObjectSecurity, %E"); } else - system_printf("Cannot get dacl: %E"); + system_printf("Cannot get dacl, %E"); out: CloseHandle (ptok); } @@ -122,7 +122,7 @@ internal_getlogin (cygheap_user &user) /* Set primary group to the group in /etc/passwd. */ if (!SetTokenInformation (ptok, TokenPrimaryGroup, &gsid, sizeof gsid)) - debug_printf ("SetTokenInformation(TokenPrimaryGroup): %E"); + debug_printf ("SetTokenInformation(TokenPrimaryGroup), %E"); else user.groups.pgsid = gsid; CloseHandle (ptok); |