Skip to content

Commit

Permalink
TEST: CFE_SB_GetBufferFromPool additional error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed May 10, 2024
1 parent 0b6a328 commit ad8acd4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/sb/fsw/src/cfe_sb_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ CFE_SB_BufferD_t *CFE_SB_GetBufferFromPool(size_t MaxMsgSize)
return NULL;
}

#if 0
CFE_ES_AppId_t appid;
char appname[20];
CFE_ES_GetAppID(&appid);
CFE_ES_GetAppName(appname, appid, sizeof(appname));
CFE_ES_WriteToSysLog("SB: %s requested %lu, stat 0x%08x, addr = 0x%p\n", appname, MaxMsgSize, stat1, addr);
#endif

/* increment the number of buffers in use and adjust the high water mark if needed */
CFE_SB_Global.StatTlmMsg.Payload.SBBuffersInUse++;
if (CFE_SB_Global.StatTlmMsg.Payload.SBBuffersInUse > CFE_SB_Global.StatTlmMsg.Payload.PeakSBBuffersInUse)
Expand Down

0 comments on commit ad8acd4

Please sign in to comment.