From c739e18f6f29b3577c857565134869380c1bd372 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Wed, 12 Jun 2024 20:11:45 -0500 Subject: [PATCH] Renamed LFSR_TAG_NOISE -> LFSR_TAG_NOTE Sort of like SHT_NOTE in elf files, but with no defined format. Using LFSR_TAG_NOTE for additional noise/nonces is still encouraged, but it can also be used to add debug info. --- lfs.c | 2 +- scripts/dbgbmap.py | 2 +- scripts/dbgbtree.py | 6 +++--- scripts/dbglfs.py | 6 +++--- scripts/dbgmtree.py | 6 +++--- scripts/dbgrbyd.py | 6 +++--- scripts/dbgtag.py | 6 +++--- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lfs.c b/lfs.c index da991a86..c3706617 100644 --- a/lfs.c +++ b/lfs.c @@ -832,7 +832,7 @@ enum lfsr_tag { LFSR_TAG_CKSUM = 0x3000, LFSR_TAG_P = 0x0001, LFSR_TAG_Q = 0x0002, - LFSR_TAG_NOISE = 0x3100, + LFSR_TAG_NOTE = 0x3100, LFSR_TAG_ECKSUM = 0x3200, // in-device only tags, these should never get written to disk diff --git a/scripts/dbgbmap.py b/scripts/dbgbmap.py index 995119b5..cc5ac893 100755 --- a/scripts/dbgbmap.py +++ b/scripts/dbgbmap.py @@ -48,7 +48,7 @@ TAG_GT = 0x1000 TAG_CKSUM = 0x3000 ## 0x3c0p v-11 cccc ---- --qp TAG_P = 0x0001 TAG_Q = 0x0002 -TAG_NOISE = 0x3100 # 0x3100 v-11 ---1 ---- ---- +TAG_NOTE = 0x3100 # 0x3100 v-11 ---1 ---- ---- TAG_ECKSUM = 0x3200 # 0x3200 v-11 --1- ---- ---- diff --git a/scripts/dbgbtree.py b/scripts/dbgbtree.py index 69d6330d..5b8f1415 100755 --- a/scripts/dbgbtree.py +++ b/scripts/dbgbtree.py @@ -46,7 +46,7 @@ TAG_GT = 0x1000 TAG_CKSUM = 0x3000 ## 0x3c0p v-11 cccc ---- --qp TAG_P = 0x0001 TAG_Q = 0x0002 -TAG_NOISE = 0x3100 # 0x3100 v-11 ---1 ---- ---- +TAG_NOTE = 0x3100 # 0x3100 v-11 ---1 ---- ---- TAG_ECKSUM = 0x3200 # 0x3200 v-11 --1- ---- ---- @@ -245,8 +245,8 @@ def tagrepr(tag, w=None, size=None, off=None): ' 0x%02x' % (tag & 0xff) if tag & 0xfc else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '') - elif (tag & 0x7f00) == TAG_NOISE: - return 'noise%s%s%s' % ( + elif (tag & 0x7f00) == TAG_NOTE: + return 'note%s%s%s' % ( ' 0x%02x' % (tag & 0xff) if tag & 0xff else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '') diff --git a/scripts/dbglfs.py b/scripts/dbglfs.py index 11abb12c..403059d2 100755 --- a/scripts/dbglfs.py +++ b/scripts/dbglfs.py @@ -47,7 +47,7 @@ TAG_GT = 0x1000 TAG_CKSUM = 0x3000 ## 0x3c0p v-11 cccc ---- --qp TAG_P = 0x0001 TAG_Q = 0x0002 -TAG_NOISE = 0x3100 # 0x3100 v-11 ---1 ---- ---- +TAG_NOTE = 0x3100 # 0x3100 v-11 ---1 ---- ---- TAG_ECKSUM = 0x3200 # 0x3200 v-11 --1- ---- ---- @@ -276,8 +276,8 @@ def tagrepr(tag, w=None, size=None, off=None): ' 0x%02x' % (tag & 0xff) if tag & 0xfc else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '') - elif (tag & 0x7f00) == TAG_NOISE: - return 'noise%s%s%s' % ( + elif (tag & 0x7f00) == TAG_NOTE: + return 'note%s%s%s' % ( ' 0x%02x' % (tag & 0xff) if tag & 0xff else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '') diff --git a/scripts/dbgmtree.py b/scripts/dbgmtree.py index af3bc313..34647262 100755 --- a/scripts/dbgmtree.py +++ b/scripts/dbgmtree.py @@ -46,7 +46,7 @@ TAG_GT = 0x1000 TAG_CKSUM = 0x3000 ## 0x3c0p v-11 cccc ---- --qp TAG_P = 0x0001 TAG_Q = 0x0002 -TAG_NOISE = 0x3100 # 0x3100 v-11 ---1 ---- ---- +TAG_NOTE = 0x3100 # 0x3100 v-11 ---1 ---- ---- TAG_ECKSUM = 0x3200 # 0x3200 v-11 --1- ---- ---- @@ -260,8 +260,8 @@ def tagrepr(tag, w=None, size=None, off=None): ' 0x%02x' % (tag & 0xff) if tag & 0xfc else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '') - elif (tag & 0x7f00) == TAG_NOISE: - return 'noise%s%s%s' % ( + elif (tag & 0x7f00) == TAG_NOTE: + return 'note%s%s%s' % ( ' 0x%02x' % (tag & 0xff) if tag & 0xff else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '') diff --git a/scripts/dbgrbyd.py b/scripts/dbgrbyd.py index ae8013e0..24404d2f 100755 --- a/scripts/dbgrbyd.py +++ b/scripts/dbgrbyd.py @@ -55,7 +55,7 @@ TAG_GT = 0x1000 TAG_CKSUM = 0x3000 ## 0x3c0p v-11 cccc ---- --qp TAG_P = 0x0001 TAG_Q = 0x0002 -TAG_NOISE = 0x3100 # 0x3100 v-11 ---1 ---- ---- +TAG_NOTE = 0x3100 # 0x3100 v-11 ---1 ---- ---- TAG_ECKSUM = 0x3200 # 0x3200 v-11 --1- ---- ---- @@ -247,8 +247,8 @@ def tagrepr(tag, w=None, size=None, off=None): ' 0x%02x' % (tag & 0xff) if tag & 0xfc else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '') - elif (tag & 0x7f00) == TAG_NOISE: - return 'noise%s%s%s' % ( + elif (tag & 0x7f00) == TAG_NOTE: + return 'note%s%s%s' % ( ' 0x%02x' % (tag & 0xff) if tag & 0xff else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '') diff --git a/scripts/dbgtag.py b/scripts/dbgtag.py index 1bf145f7..35aa80eb 100755 --- a/scripts/dbgtag.py +++ b/scripts/dbgtag.py @@ -44,7 +44,7 @@ TAG_GT = 0x1000 TAG_CKSUM = 0x3000 ## 0x3c0p v-11 cccc ---- --qp TAG_P = 0x0001 TAG_Q = 0x0002 -TAG_NOISE = 0x3100 # 0x3100 v-11 ---1 ---- ---- +TAG_NOTE = 0x3100 # 0x3100 v-11 ---1 ---- ---- TAG_ECKSUM = 0x3200 # 0x3200 v-11 --1- ---- ---- @@ -202,8 +202,8 @@ def tagrepr(tag, w=None, size=None, off=None): ' 0x%02x' % (tag & 0xff) if tag & 0xfc else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '') - elif (tag & 0x7f00) == TAG_NOISE: - return 'noise%s%s%s' % ( + elif (tag & 0x7f00) == TAG_NOTE: + return 'note%s%s%s' % ( ' 0x%02x' % (tag & 0xff) if tag & 0xff else '', ' w%d' % w if w else '', ' %s' % size if size is not None else '')