from __future__ import print_function

import logging
import sys

log = logging.getLogger('dmoj.cptbox')


def print_protection_fault(fault):
    syscall, callname, args = fault
    log.info('Protection fault on: %d (%s)', syscall, callname)
    for i, arg in enumerate(args):
        log.info('Arg%d: 0x%016x', i, arg)
