Changeset 02a99d2 in mainline for src/mm/frame.c


Ignore:
Timestamp:
2005-05-11T19:51:55Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
69515260
Parents:
45671f48
Message:

NDEBUG debug symbol, ASSERT debug macro, fancier panic() in debug mode
indentation fixes, ASSERTs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mm/frame.c

    r45671f48 r02a99d2  
    7272                frame_bitmap = (__u8 *) malloc(frame_bitmap_octets);
    7373                if (!frame_bitmap)
    74                         panic(PANIC "malloc/frame_bitmap\n");
     74                        panic("malloc/frame_bitmap\n");
    7575
    7676                /*
     
    145145                        }
    146146                }
    147                 panic(PANIC "frames_free inconsistent (%d)\n", frames_free);
     147                panic("frames_free inconsistent (%d)\n", frames_free);
    148148        }
    149149        spinlock_unlock(&framelock);
     
    151151
    152152        if (flags & FRAME_PANIC)
    153                 panic(PANIC "unable to allocate frame\n");
     153                panic("unable to allocate frame\n");
    154154               
    155155        /* TODO: implement sleeping logic here */
    156         panic(PANIC "sleep not supported\n");
     156        panic("sleep not supported\n");
    157157       
    158158        goto loop;
     
    196196                        }       
    197197                }
    198                 else panic(PANIC "frame_free: frame already free\n");
    199         }
    200         else panic(PANIC "frame_free: frame number too big\n");
     198                else panic("frame_free: frame already free\n");
     199        }
     200        else panic("frame_free: frame number too big\n");
    201201       
    202202        spinlock_unlock(&framelock);
Note: See TracChangeset for help on using the changeset viewer.