Changeset 7006f08 in rtems


Ignore:
Timestamp:
Feb 12, 2020, 2:09:39 PM (2 months ago)
Author:
Dennis Pfau <dennis.pfau@…>
Branches:
master
Children:
486829b2
Parents:
3f7ebdd
git-author:
Dennis Pfau <dennis.pfau@…> (02/12/20 14:09:39)
git-committer:
Gedare Bloom <gedare@…> (02/20/20 16:57:27)
Message:

drvmgr: Fix determination of prefix in grlib uart driver

drvmgr_get_dev_prefix returns 0 if a prefix was found.
Therefore the if condition needs to check for 0, i.e. DRVMGR_OK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/grlib/uart/apbuart_cons.c

    r3f7ebdd r7006f08  
    322322        /* Get Filesystem name prefix */
    323323        prefix[0] = '\0';
    324         if (drvmgr_get_dev_prefix(dev, prefix)) {
     324        if (drvmgr_get_dev_prefix(dev, prefix) == DRVMGR_OK) {
    325325                /* Got special prefix, this means we have a bus prefix
    326326                 * And we should use our "bus minor"
Note: See TracChangeset for help on using the changeset viewer.