Skip to content

Fix copy-paste comment typos in xTaskGetApplicationTaskTag[FromISR]#1446

Open
wanghengZzz wants to merge 1 commit into
FreeRTOS:mainfrom
wanghengZzz:main
Open

Fix copy-paste comment typos in xTaskGetApplicationTaskTag[FromISR]#1446
wanghengZzz wants to merge 1 commit into
FreeRTOS:mainfrom
wanghengZzz:main

Conversation

@wanghengZzz

Copy link
Copy Markdown

Description

This PR corrects copy-paste comment errors in both xTaskGetApplicationTaskTag() and xTaskGetApplicationTaskTagFromISR() within the task management module (tasks.c).

The comments in these getter functions were accidentally copied from the setter counterpart (vTaskSetApplicationTaskTag()), leading to misleading terminology in a read-only context

In tasks.c:

  • For xTaskGetApplicationTaskTag & xTaskGetApplicationTaskTagFromISR:
    • Updated /* If xTask is NULL then set the calling task's hook. */
      /* If xTask is NULL then get the calling task's hook. */
    • Updated /* Save the hook function in the TCB. ... */
      /* Access the hook function in the TCB. ... */

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sonarqubecloud

sonarqubecloud Bot commented Jul 4, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant