--- projects/libstatgrab/examples/vm_stats.c 2004/04/06 14:52:56 1.10 +++ projects/libstatgrab/examples/vm_stats.c 2004/11/06 18:58:23 1.12 @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id: vm_stats.c,v 1.10 2004/04/06 14:52:56 tdb Exp $ + * $Id: vm_stats.c,v 1.12 2004/11/06 18:58:23 tdb Exp $ */ #include @@ -25,7 +25,7 @@ #include #include -int main(int argc, char **argv){ +int main(){ sg_mem_stats *mem_stats; sg_swap_stats *swap_stats; @@ -58,7 +58,7 @@ int main(int argc, char **argv){ } else { - printf("Unable to get VM stats.\n"); + printf("Unable to get VM stats: %s\n", sg_str_error(sg_get_error())); exit(1); } exit(0);