Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed DebugPrintTSRead function and clean up #24

Merged
merged 1 commit into from
Feb 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions UnifiedLog/Lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,19 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from __future__ import print_function
from __future__ import unicode_literals

import binascii
import datetime
import os
import posixpath
import struct
import time
import uuid

import lz4.block

from UnifiedLog import dsc_file
from UnifiedLog import logger
from UnifiedLog import resources
from UnifiedLog import tracev3_file
from UnifiedLog import uuidtext_file


# FORMAT
Expand Down Expand Up @@ -243,10 +238,3 @@ def ReadTimesyncFolder(path, ts_list, vfs):
logger.error("In Timesync folder, found non-ts file {}".format(entry))
except Exception:
logger.exception('')

def DebugPrintTSRead(ts_list):
for ts in ts_list:
h = ts.header
logger.debug("HEADER = {} {} {} {} {} {}".format(h.uuid, h.flags1, h.flags2, ReadAPFSTime(h.time_stamp), -h.bias/60.0, h.is_dst))
for item in ts.items:
logger.debug('ITEM={} {} {} {} {}'.format(item.ts_unknown, item.continuousTime, ReadAPFSTime(item.time_stamp), -item.bias/60., item.is_dst))