Changeset c57316a in rtems for cpukit/libi2c


Ignore:
Timestamp:
Oct 11, 2007, 12:46:50 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
b7fa289
Parents:
df16b8bf
Message:

2007-10-11 Daniel Hellstrom <daniel@…>

  • libi2c/libi2c.c, libi2c/libi2c.h: Add message about needing IMFS. Fixed check of status when registering driver. Add use of strerror().
Location:
cpukit/libi2c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libi2c/libi2c.c

    rdf16b8bf rc57316a  
    324324
    325325  sc = rtems_io_register_driver (0, &libi2c_io_ops, &rtems_libi2c_major);
    326   if (RTEMS_SUCCESSFUL != 0) {
     326  if (RTEMS_SUCCESSFUL != sc) {
    327327    fprintf (stderr,
    328328             DRVNM " Claiming driver slot failed (rtems status code %i)\n",
     
    367367  *chpt = tmp;
    368368  if (i) {
    369     fprintf (stderr, "Bad name '%s'; parent directory doesn't exist\n",
    370              nmcpy);
     369    fprintf (stderr, "Get %s status failed: %s\n",
     370             nmcpy,strerror(errno));
    371371    return -RTEMS_INVALID_NAME;
    372372  }
  • cpukit/libi2c/libi2c.h

    rdf16b8bf rc57316a  
    114114 *
    115115 * The name will be registered in the filesystem (parent
    116  * directories must exist). It may be NULL in which case
     116 * directories must exist, also IMFS filesystem must exist see
     117 * CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM). It may be NULL in which case
    117118 * the library will pick a default.
    118119 *
Note: See TracChangeset for help on using the changeset viewer.