/shared2/test2/nanderr.log

From WiiBrew
Jump to navigation Jump to search
/shared2/test2/nanderr.log
TypeGeneric file
Owner1-2
Group ID1

/shared2/test2/nanderr.log is a log file that keeps track of errors returned by the SDK IPC functions. It does not seem to have existed at launch day, but it does exist in an August 7, 2007 build of the NAND library.

Writing to this file

NAND seems to write to this file whenever one of its filesystem functions receives an error from IOS. It seems to use an entirely asynchronous 9-state system, where the main handling function keeps track of state in glob_798c (instead of the userData parameter).

Format

Each line is formatted as N YEAR/MM/DD HH:MM:SS TITLEIDH-TITLEIDL Message. Below are the possible messages that may be stored in this file:

Message Description
Created log file. Usually happens on January 1, 2006, as a result of it being created before the clock is set, although it can happen at other times in Dolphin. Always created by 1-2, most likely the factory System Menu.

This entry is probably present to track if the file gets overwritten at some point, which sometimes happens when writing new logs, and could be a sign of more error logs that were deleted as a result of a corrupted filesystem.

ISFS error code: %d Logged when error -114 (ECC error), -116 (ENOENT), -117 (ENFILE), -9 (this error does not exist?), or -12 (ECC error) is passed to nandConvertError by one of the NAND functions in the NAND library.
ISFS unexpected error code: %d Logged when nandConvertError is given an error code that is not in the conversion table