Changeset 30b56d9 in mainline


Ignore:
Timestamp:
2023-02-04T17:14:26Z (13 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1b073b7
Parents:
661a5ac
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-14 13:32:11)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-04 17:14:26)
Message:

Use the correct format specifier when printing task_id_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/assert.c

    r661a5ac r30b56d9  
    4646         * Send the message safely to kio. Nested asserts should not occur.
    4747         */
    48         kio_printf("Assertion failed (%s) in task %ld, file \"%s\", line %u.\n",
    49             cond, (long) task_get_id(), file, line);
     48        kio_printf("Assertion failed (%s) in task %" PRIu64 ", file \"%s\", line %u.\n",
     49            cond, task_get_id(), file, line);
    5050
    5151        stacktrace_kio_print();
     
    6060         * Send the message safely to kio. Nested asserts should not occur.
    6161         */
    62         kio_printf("Assertion failed (%s) in task %ld, file \"%s\", line %u.\n",
    63             cond, (long) task_get_id(), file, line);
     62        kio_printf("Assertion failed (%s) in task %" PRIu64 ", file \"%s\", line %u.\n",
     63            cond, task_get_id(), file, line);
    6464
    6565        stacktrace_kio_print();
     
    7777         * assertions.
    7878         */
    79         kio_printf("Assertion failed (%s) in task %ld, file \"%s\", line %u.\n",
    80             cond, (long) task_get_id(), file, line);
     79        kio_printf("Assertion failed (%s) in task %" PRIu64 ", file \"%s\", line %u.\n",
     80            cond, task_get_id(), file, line);
    8181        stacktrace_print();
    8282
Note: See TracChangeset for help on using the changeset viewer.