mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Fix up tabs/spaces mismatches
Mixing them up breaks the gdb pretty printer tests. ChangeLog: 2017-01-02 Martin Galvan <martingalvan@sourceware.org> * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
This commit is contained in:
parent
df19fdcfec
commit
26e21ad35d
@ -1,3 +1,7 @@
|
||||
2017-01-03 Martin Galvan <martingalvan@sourceware.org>
|
||||
|
||||
* nptl/nptl-printers.py: Fix tabs/spaces mismatches.
|
||||
|
||||
2017-01-02 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
[BZ #21019]
|
||||
|
@ -348,10 +348,10 @@ class ConditionVariablePrinter(object):
|
||||
def read_attributes(self):
|
||||
"""Read the condvar's attributes."""
|
||||
|
||||
if (self.wrefs & PTHREAD_COND_CLOCK_MONOTONIC_MASK) != 0:
|
||||
self.values.append(('Clock ID', 'CLOCK_MONOTONIC'))
|
||||
else:
|
||||
self.values.append(('Clock ID', 'CLOCK_REALTIME'))
|
||||
if (self.wrefs & PTHREAD_COND_CLOCK_MONOTONIC_MASK) != 0:
|
||||
self.values.append(('Clock ID', 'CLOCK_MONOTONIC'))
|
||||
else:
|
||||
self.values.append(('Clock ID', 'CLOCK_REALTIME'))
|
||||
|
||||
if (self.wrefs & PTHREAD_COND_SHARED_MASK) != 0:
|
||||
self.values.append(('Shared', 'Yes'))
|
||||
@ -409,10 +409,10 @@ class ConditionVariableAttributesPrinter(object):
|
||||
|
||||
clock_id = (self.condattr >> 1) & ((1 << COND_CLOCK_BITS) - 1)
|
||||
|
||||
if clock_id != 0:
|
||||
self.values.append(('Clock ID', 'CLOCK_MONOTONIC'))
|
||||
else:
|
||||
self.values.append(('Clock ID', 'CLOCK_REALTIME'))
|
||||
if clock_id != 0:
|
||||
self.values.append(('Clock ID', 'CLOCK_MONOTONIC'))
|
||||
else:
|
||||
self.values.append(('Clock ID', 'CLOCK_REALTIME'))
|
||||
|
||||
if self.condattr & 1:
|
||||
self.values.append(('Shared', 'Yes'))
|
||||
|
Loading…
Reference in New Issue
Block a user