From 2ca6621c3814a99236083c5ddf35b3424f533f68 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:56:56 -0500 Subject: [PATCH] spelling: length Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../pebble/commander/apps/flash_imaging.py | 4 ++-- src/fw/services/normal/blob_db/api.h | 14 +++++++------- tools/pulse/flash_imaging.py | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/python_libs/pebble-commander/pebble/commander/apps/flash_imaging.py b/python_libs/pebble-commander/pebble/commander/apps/flash_imaging.py index 5e54f4f3..c41d575f 100644 --- a/python_libs/pebble-commander/pebble/commander/apps/flash_imaging.py +++ b/python_libs/pebble-commander/pebble/commander/apps/flash_imaging.py @@ -50,7 +50,7 @@ class EraseCommand(object): if unpacked.address != self.address or unpacked.length != self.length: raise exceptions.ResponseParseError( 'Response does not match command: ' - 'address=%#.08x legnth=%d (expected %#.08x, %d)' % ( + 'address=%#.08x length=%d (expected %#.08x, %d)' % ( unpacked.address, unpacked.length, self.address, self.length)) return unpacked @@ -113,7 +113,7 @@ class CrcCommand(object): if unpacked.address != self.address or unpacked.length != self.length: raise exceptions.ResponseParseError( 'Response does not match command: ' - 'address=%#.08x legnth=%d (expected %#.08x, %d)' % ( + 'address=%#.08x length=%d (expected %#.08x, %d)' % ( unpacked.address, unpacked.length, self.address, self.length)) return unpacked diff --git a/src/fw/services/normal/blob_db/api.h b/src/fw/services/normal/blob_db/api.h index 72e1c68d..76cc992e 100644 --- a/src/fw/services/normal/blob_db/api.h +++ b/src/fw/services/normal/blob_db/api.h @@ -66,7 +66,7 @@ typedef void (*BlobDBInitImpl)(void); //! Implements the insert API. Note that this function should be blocking. //! \param key a pointer to the key data -//! \param key_len the lenght of the key, in bytes +//! \param key_len the length of the key, in bytes //! \param val a pointer to the value data //! \param val_len the length of the value, in bytes //! \returns S_SUCCESS if the key/val pair was succesfully inserted @@ -76,7 +76,7 @@ typedef status_t (*BlobDBInsertImpl) //! Implements the get length API. //! \param key a pointer to the key data -//! \param key_len the lenght of the key, in bytes +//! \param key_len the length of the key, in bytes //! \returns the length in bytes of the value for key on success //! and an error code otherwise (See \ref StatusCode) typedef int (*BlobDBGetLenImpl) @@ -84,7 +84,7 @@ typedef int (*BlobDBGetLenImpl) //! Implements the read API. Note that this function should be blocking. //! \param key a pointer to the key data -//! \param key_len the lenght of the key, in bytes +//! \param key_len the length of the key, in bytes //! \param[out] val_out a pointer to a buffer of size val_len //! \param val_len the length of the value to be copied, in bytes //! \returns S_SUCCESS if the value for key was succesfully read, @@ -94,7 +94,7 @@ typedef status_t (*BlobDBReadImpl) //! Implements the delete API. Note that this function should be blocking. //! \param key a pointer to the key data -//! \param key_len the lenght of the key, in bytes +//! \param key_len the length of the key, in bytes //! \returns S_SUCCESS if the key/val pair was succesfully deleted //! and an error code otherwise (See \ref StatusCode) typedef status_t (*BlobDBDeleteImpl) @@ -118,7 +118,7 @@ typedef BlobDBDirtyItem *(*BlobDBGetDirtyListImpl)(void); //! Implements the MarkSynced API. //! \param key a pointer to the key data -//! \param key_len the lenght of the key, in bytes +//! \param key_len the length of the key, in bytes //! \returns S_SUCCESS if the item was marked synced, an error code otherwise typedef status_t (*BlobDBMarkSyncedImpl)(const uint8_t *key, int key_len); @@ -143,7 +143,7 @@ void blob_db_get_dirty_dbs(uint8_t *ids, uint8_t *num_ids); //! See \ref BlobDBReadImpl //! \param db_id the ID of the blob DB //! \param key a pointer to the key data -//! \param key_len the lenght of the key, in bytes +//! \param key_len the length of the key, in bytes status_t blob_db_insert(BlobDBId db_id, const uint8_t *key, int key_len, const uint8_t *val, int val_len); @@ -151,7 +151,7 @@ status_t blob_db_insert(BlobDBId db_id, //! See \ref BlobDBGetLenImpl //! \param db_id the ID of the blob DB //! \param key a pointer to the key data -//! \param key_len the lenght of the key, in bytes +//! \param key_len the length of the key, in bytes int blob_db_get_len(BlobDBId db_id, const uint8_t *key, int key_len); diff --git a/tools/pulse/flash_imaging.py b/tools/pulse/flash_imaging.py index ebcd8d11..528d1aa0 100644 --- a/tools/pulse/flash_imaging.py +++ b/tools/pulse/flash_imaging.py @@ -47,7 +47,7 @@ class EraseCommand(object): if unpacked.address != self.address or unpacked.length != self.length: raise exceptions.ResponseParseError( 'Response does not match command: ' - 'address=%#.08x legnth=%d (expected %#.08x, %d)' % ( + 'address=%#.08x length=%d (expected %#.08x, %d)' % ( unpacked.address, unpacked.length, self.address, self.length)) return unpacked @@ -110,7 +110,7 @@ class CrcCommand(object): if unpacked.address != self.address or unpacked.length != self.length: raise exceptions.ResponseParseError( 'Response does not match command: ' - 'address=%#.08x legnth=%d (expected %#.08x, %d)' % ( + 'address=%#.08x length=%d (expected %#.08x, %d)' % ( unpacked.address, unpacked.length, self.address, self.length)) return unpacked