printf works. The output should go to the logs or the first console or
the serial console depending on how you configure it.
> fprintf(stdout, "test");
>
> I also tried to write in an existing file:
>
> /***************CODE************************/
> FILE *fp;
>
> if ((fp=fopen("/home/meinlog/log","a"))!=NULL)
> {
> fprintf(fp, "VFS: get work\n");
> fclose(fp);
> }
>
> /***************CODE************************/
opening a file from a server which implements opening files sonds
strange, doesn't it? It should not work.
T.
--
You received this message because you are subscribed to the Google Groups "minix3" group.
To post to this group, send email to min...@googlegroups.com.
To unsubscribe from this group, send email to minix3+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/minix3?hl=en.
diff would be much more helpfull. Who knows what is line 116 and 157
in a past version. It is hard to say whether the code is actually
executed. In general, printf works and you should see the results in
one the sinks.
T.
Come on man, give us some more info so we can help you. A patch with
your changes would help. How much changes did you make? I suppose you
need the print because you are hunting for a bug which you introduced.
Better still, put the print in some code which is ~100% executed like
in the main() function right after sef_startup(). You should see some
output.
T.
Things are looking good then ;-) If you are able to have a printf() in
vfs/main, you can easily add another printf() in the switch(call_nr), in
the case it is actually MOUNT (do not forget to also execute the
"default" actions.)
Another place where you can probably insert a printf() in do_mount.
Antoine
T.