<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sssd.git/src/util/debug.c, branch token3</title>
<subtitle>System Security Services Daemon [okos' clone]</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/'/>
<entry>
<title>Fix clang format string warning.</title>
<updated>2013-07-19T08:22:01+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2013-07-17T14:43:16+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=0b2e2888b1b68742e91a64bbec8540c7bfa3f179'/>
<id>0b2e2888b1b68742e91a64bbec8540c7bfa3f179</id>
<content type='text'>
warning: format string is not a string literal (potentially insecure)
[-Wformat-security]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
warning: format string is not a string literal (potentially insecure)
[-Wformat-security]
</pre>
</div>
</content>
</entry>
<entry>
<title>More generalized function open_debug_file_ex()</title>
<updated>2013-03-13T18:41:38+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2013-03-08T14:27:14+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=7800c9da75ad0dc3b4a530b15adce86d6c4f26e5'/>
<id>7800c9da75ad0dc3b4a530b15adce86d6c4f26e5</id>
<content type='text'>
Function open_debug_file_ex() set flag FD_CLOEXEC to opened
file according to the value of third parameter.

Removed duplicity of unsetting FD_CLOEXEC after calling function
open_debug_file_ex()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Function open_debug_file_ex() set flag FD_CLOEXEC to opened
file according to the value of third parameter.

Removed duplicity of unsetting FD_CLOEXEC after calling function
open_debug_file_ex()
</pre>
</div>
</content>
</entry>
<entry>
<title>Free resources if fileno failed</title>
<updated>2012-12-20T17:12:18+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2012-12-18T18:33:57+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=3831f866292da4118e87e204ac8c02244825bf43'/>
<id>3831f866292da4118e87e204ac8c02244825bf43</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Set cloexec flag for log files</title>
<updated>2012-12-18T10:34:11+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2012-12-15T18:56:33+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=449fd66aa70c284dd91d51c49363ef9e941dba8d'/>
<id>449fd66aa70c284dd91d51c49363ef9e941dba8d</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/1708

The services kept the fd to /var/log/sssd/sssd.log open. I don't think
there's any point in keeping the logfiles open after exec-ing for the
child, so I set the CLOEXEC flag.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/1708

The services kept the fd to /var/log/sssd/sssd.log open. I don't think
there's any point in keeping the logfiles open after exec-ing for the
child, so I set the CLOEXEC flag.
</pre>
</div>
</content>
</entry>
<entry>
<title>Include talloc log in our debug facility</title>
<updated>2012-10-29T16:15:37+00:00</updated>
<author>
<name>Michal Zidek</name>
<email>mzidek@redhat.com</email>
</author>
<published>2012-10-15T13:24:15+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=9e2c64c6d4f5560e27207193efea6536a566865e'/>
<id>9e2c64c6d4f5560e27207193efea6536a566865e</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/1495
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/1495
</pre>
</div>
</content>
</entry>
<entry>
<title>DEBUG: Log to syslog if we are unable to open a debug fd</title>
<updated>2012-06-29T15:40:03+00:00</updated>
<author>
<name>Stephen Gallagher</name>
<email>sgallagh@redhat.com</email>
</author>
<published>2012-06-27T18:08:38+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=1821a0d507d5aadf725d4af4757819119c91cc68'/>
<id>1821a0d507d5aadf725d4af4757819119c91cc68</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DEBUG timestamps offer higher precision</title>
<updated>2011-09-08T19:29:42+00:00</updated>
<author>
<name>Pavel Březina</name>
<email>pbrezina@redhat.com</email>
</author>
<published>2011-08-29T08:32:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=1a7529bf5f867b43e0475f7f9ac0cd8671fb16f1'/>
<id>1a7529bf5f867b43e0475f7f9ac0cd8671fb16f1</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/956

Added: --debug-microseconds=0/1
Added: debug_microseconds to sssd.conf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/956

Added: --debug-microseconds=0/1
Added: debug_microseconds to sssd.conf
</pre>
</div>
</content>
</entry>
<entry>
<title>New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0</title>
<updated>2011-08-25T19:46:11+00:00</updated>
<author>
<name>Pavel Březina</name>
<email>pbrezina@redhat.com</email>
</author>
<published>2011-08-03T07:15:52+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=89caf5edcc99f5731e89bd51e6ffaad3ec11c304'/>
<id>89caf5edcc99f5731e89bd51e6ffaad3ec11c304</id>
<content type='text'>
Removed:
    SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED)

Added new macro:
    CONVERT_AND_SET_DEBUG_LEVEL(new_value)

Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0
so DEBUG macro could be reduced by one condition. Anyway, it has a minor
effect, every time you want to load debug_level from command line parameters,
you have to use following pattern:

    /* Set debug level to invalid value so we can deside if -d 0 was used. */
    debug_level = SSSDBG_INVALID;

    pc = poptGetContext(argv[0], argc, argv, long_options, 0);
    while((opt = poptGetNextOpt(pc)) != -1) { ... }

    CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removed:
    SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED)

Added new macro:
    CONVERT_AND_SET_DEBUG_LEVEL(new_value)

Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0
so DEBUG macro could be reduced by one condition. Anyway, it has a minor
effect, every time you want to load debug_level from command line parameters,
you have to use following pattern:

    /* Set debug level to invalid value so we can deside if -d 0 was used. */
    debug_level = SSSDBG_INVALID;

    pc = poptGetContext(argv[0], argc, argv, long_options, 0);
    while((opt = poptGetNextOpt(pc)) != -1) { ... }

    CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
</pre>
</div>
</content>
</entry>
<entry>
<title>New DEBUG facility - conversion</title>
<updated>2011-08-25T19:46:11+00:00</updated>
<author>
<name>Pavel Březina</name>
<email>pbrezina@redhat.com</email>
</author>
<published>2011-08-09T11:01:05+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=99dd40a885ed3d42af4bbbde7ee2fc98830544d0'/>
<id>99dd40a885ed3d42af4bbbde7ee2fc98830544d0</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/925

Conversion of the old debug_level format to the new one.
(only where it was necessary)

Removed:
  SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/925

Conversion of the old debug_level format to the new one.
(only where it was necessary)

Removed:
  SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT)
</pre>
</div>
</content>
</entry>
<entry>
<title>New DEBUG facility - new levels</title>
<updated>2011-08-25T19:46:11+00:00</updated>
<author>
<name>Pavel Březina</name>
<email>pbrezina@redhat.com</email>
</author>
<published>2011-08-09T08:19:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=a32ae272bb0ae0a47ab80d3a2fcc535fd5260754'/>
<id>a32ae272bb0ae0a47ab80d3a2fcc535fd5260754</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/925

Added functions:
- debug_convert_old_level() to convert levels 0-9 to appropriate bitmask
  debug_convert_old_level(5) returns 0x03F0 (= 0 | 1 | 2 | 3 | 4 | 5)

- debug_get_level() to convert old level number to its new value
  debug_get_level(5) returns 0x0200 (= 5)

There are several new macros in util/util.h:

- SSSDBG_* to reflect a debug level (same names as in the ticket) - please,
  don't use magic numbers anymore
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/925

Added functions:
- debug_convert_old_level() to convert levels 0-9 to appropriate bitmask
  debug_convert_old_level(5) returns 0x03F0 (= 0 | 1 | 2 | 3 | 4 | 5)

- debug_get_level() to convert old level number to its new value
  debug_get_level(5) returns 0x0200 (= 5)

There are several new macros in util/util.h:

- SSSDBG_* to reflect a debug level (same names as in the ticket) - please,
  don't use magic numbers anymore
</pre>
</div>
</content>
</entry>
</feed>
