From 22e3038b0f04efd033f7b90d315d80a6cf5ccdef Mon Sep 17 00:00:00 2001 From: rocky Date: Wed, 18 Jan 2006 20:58:53 +0000 Subject: [PATCH] Add close status message. Remove uneeded driver_id parameter. Fix a grammatical mistake. --- example/C++/OO/eject.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/example/C++/OO/eject.cpp b/example/C++/OO/eject.cpp index 4c329daf..75764b6e 100644 --- a/example/C++/OO/eject.cpp +++ b/example/C++/OO/eject.cpp @@ -1,7 +1,7 @@ /* - $Id: eject.cpp,v 1.4 2006/01/17 02:09:32 rocky Exp $ + $Id: eject.cpp,v 1.5 2006/01/18 20:58:53 rocky Exp $ - Copyright (C) 2005 Rocky Bernstein + Copyright (C) 2005, 2006 Rocky Bernstein This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -62,7 +62,7 @@ main(int argc, const char *argv[]) printf("CD in CD-ROM drive %s ejected.\n", psz_drive); } catch ( CdioDevice::DriverOpUninit e ) { - printf("Can't Ejecting CD from CD-ROM drive: driver is not initialized.\n", + printf("Can't Eject CD from CD-ROM drive: driver is not initialized.\n", psz_drive); } catch ( CdioDevice::DriverOpException e ) { @@ -71,7 +71,8 @@ main(int argc, const char *argv[]) } try { - device.closeTray(psz_drive, driver_id); + device.closeTray(psz_drive); + printf("Closed CD-ROM %s tray.\n", psz_drive); } catch ( CdioDevice::DriverOpException e ) { printf("Closing CD-ROM %s tray operation error error:\n\t%s.\n",